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