line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JE::Object::Error::ReferenceError; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.065'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
101
|
|
|
101
|
|
17812
|
use strict; |
|
101
|
|
|
|
|
154
|
|
|
101
|
|
|
|
|
3204
|
|
7
|
101
|
|
|
101
|
|
416
|
use warnings; |
|
101
|
|
|
|
|
206
|
|
|
101
|
|
|
|
|
7206
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ISA = 'JE::Object::Error'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
require JE::Object::Error; |
12
|
|
|
|
|
|
|
require JE::String; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
JE::Object::Error::ReferenceError - JavaScript ReferenceError object class |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use JE::Object::Error::ReferenceError; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Somewhere in code called by an eval{} |
24
|
|
|
|
|
|
|
die new JE::Object::Error::ReferenceError $global, |
25
|
|
|
|
|
|
|
"(Error message here)"; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Later: |
28
|
|
|
|
|
|
|
$@->prop('message'); # error message |
29
|
|
|
|
|
|
|
$@->prop('name'); # 'ReferenceError' |
30
|
|
|
|
|
|
|
"$@"; # 'ReferenceError: ' plus the error message |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
This class implements JavaScript ReferenceError objects for JE. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 METHODS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
See L and L. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
34
|
|
|
34
|
0
|
193
|
sub name { 'ReferenceError' } |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
return "a true value"; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SEE ALSO |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=over 4 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item L |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item L |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item L |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item L |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=back |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=cut |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|