line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JE::Object::Error::SyntaxError; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.066'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
101
|
|
|
101
|
|
20171
|
use strict; |
|
101
|
|
|
|
|
148
|
|
|
101
|
|
|
|
|
3848
|
|
7
|
101
|
|
|
101
|
|
455
|
use warnings; |
|
101
|
|
|
|
|
159
|
|
|
101
|
|
|
|
|
7849
|
|
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
|
249
|
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
|
|
|
|
|
|
|
|