line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JavaScript::Code::Function::BuildIn;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
74
|
|
4
|
2
|
|
|
2
|
|
11
|
use vars qw[ $VERSION ];
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
5
|
2
|
|
|
2
|
|
10
|
use base qw[ JavaScript::Code::Function ];
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
335
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.08';
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
JavaScript::Code::Function::BuildIn - JavaScript Build-In Functions
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 METHODS
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 is_buildin
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut
|
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
1
|
|
sub is_buildin { return 1; }
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 return
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
The return function.
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub return {
|
30
|
0
|
|
|
0
|
1
|
|
my $obj = shift;
|
31
|
0
|
|
0
|
|
|
|
my $class = ref $obj || $obj;
|
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $class->new( name => 'return' );
|
34
|
|
|
|
|
|
|
}
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Sascha Kiefer, C
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 LICENSE
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify it under
|
47
|
|
|
|
|
|
|
the same terms as Perl itself.
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1;
|