summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/modifier-semicolon-insertion.js
blob: d56b15c47c59a86906efdd7dc44a35a41fb9e97f (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
49
50
51
52
Reflect.parse(`
function a()f1()
f2()
`);
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()
`);