summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/modifier-semicolon-insertion.js
blob: 5a5dfee0f253b4bb14a1826c2ddbbd4c7b00ba42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Reflect.parse(`
let a
f2()
`);
Reflect.parse(`
let a=1
f2()
`);
Reflect.parse(`
import 'a'
f2()
`, {target: "module"});
Reflect.parse(`
export { a } from 'a'
f2()
`, {target: "module"});
Reflect.parse(`
var a
f2()
`);
Reflect.parse(`
var a=1
f2()
`);
Reflect.parse(`
f1()
f2()
`);
Reflect.parse(`
while(false) { continue
f2() }
`);
Reflect.parse(`
while(false) { break
f2() }
`);
Reflect.parse(`
function a() { return
f2() }
`);
Reflect.parse(`
throw 1
f2()
`);
Reflect.parse(`
debugger
f2()
`);