author | sdama |
Tue, 28 Aug 2018 13:22:57 +0530 | |
changeset 53321 | 2cdf4a989ee7 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
29543
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
1 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
2 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
3 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
4 |
"code": "ident (19, 1)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
5 |
"columnNumber": "19", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
6 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
7 |
"position": "19", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
8 |
"message": "test.js:1:19 Property \"k\" already defined\n var a = { k:1, k:2 }\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
9 |
"lineNumber": "1" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
10 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
11 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
12 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
13 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
14 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
15 |
"code": "with (19, 4)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
16 |
"columnNumber": "4", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
17 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
18 |
"position": "19", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
19 |
"message": "test.js:2:4 \"with\" statement cannot be used in strict mode\n with(x) {}\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
20 |
"lineNumber": "2" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
21 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
22 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
23 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
24 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
25 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
26 |
"code": "ident (8, 4)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
27 |
"columnNumber": "8", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
28 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
29 |
"position": "8", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
30 |
"message": "test.js:1:8 \"eval\" cannot be used as variable name in strict mode\n var eval = \"test value\";\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
31 |
"lineNumber": "1" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
32 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
33 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
34 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
35 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
36 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
37 |
"code": "ident (8, 9)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
38 |
"columnNumber": "8", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
39 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
40 |
"position": "8", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
41 |
"message": "test.js:1:8 \"arguments\" cannot be used as variable name in strict mode\n var arguments = \"test value\";\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
42 |
"lineNumber": "1" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
43 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
44 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
45 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
46 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
47 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
48 |
"code": "function (23, 8)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
49 |
"columnNumber": "6", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
50 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
51 |
"position": "23", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
52 |
"message": "test.js:2:6 In strict mode, function declarations can only occur at program or function body level. You should use a function expression here instead.\n \t\tfunction a () {}\n \t\t^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
53 |
"lineNumber": "2" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
54 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
55 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
56 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
57 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
58 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
59 |
"code": "ident (26, 3)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
60 |
"columnNumber": "26", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
61 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
62 |
"position": "26", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
63 |
"message": "test.js:1:26 Property \"x\" already defined\n var a = { get x() {}, get x() {}};\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
64 |
"lineNumber": "1" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
65 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
66 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
67 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
68 |
"code": "ident (65, 3)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
69 |
"columnNumber": "26", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
70 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
71 |
"position": "65", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
72 |
"message": "test.js:2:26 Property \"x\" already defined\n var a = { set x() {}, set x() {}};\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
73 |
"lineNumber": "2" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
74 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
75 |
] |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
76 |
[ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
77 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
78 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
79 |
"code": "; (15, 1)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
80 |
"columnNumber": "15", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
81 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
82 |
"position": "15", |
53321
2cdf4a989ee7
8203688: [testbug] Nashorn test test/nashorn/script/nosecurity/treeapi/diagnostic.js fails
sdama
parents:
47216
diff
changeset
|
83 |
"message": "test.js:1:15 Unclosed group near index 9\n([a-z])+(\n /([a-z])+(/;\n ^", |
29543
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
84 |
"lineNumber": "1" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
85 |
}, |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
86 |
{ |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
87 |
"fileName": "test.js", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
88 |
"code": "; (32, 1)", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
89 |
"columnNumber": "15", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
90 |
"kind": "ERROR", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
91 |
"position": "32", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
92 |
"message": "test.js:2:15 Unsupported RegExp flag: h\n /([a-z])+/h;\n ^", |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
93 |
"lineNumber": "2" |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
94 |
} |
4d9f8f8b69a4
8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff
changeset
|
95 |
] |