Commit 01d4522
test,vm: enable strict mode for vm tests
Some vm tests are not in strict mode because they need to create and use
global variables. By using `global.foo` instead of just `foo`, we can
still enable strict mode.
PR-URL: #6209
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>1 parent 1796e49 commit 01d4522Copy full SHA for 01d4522
File tree
Expand file treeCollapse file tree
3 files changed
+56
-56
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
3 files changed
+56
-56
lines changedOpen diff view settings
Collapse file
test/parallel/test-vm-new-script-new-context.js
Copy file name to clipboardExpand all lines: test/parallel/test-vm-new-script-new-context.js+20-20Lines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
12 | | - |
| 11 | + |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
43 | 43 | |
44 | | - |
| 44 | + |
45 | 45 | |
46 | | - |
47 | | - |
48 | | - |
| 46 | + |
| 47 | + |
| 48 | + |
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
|
Collapse file
test/parallel/test-vm-new-script-this-context.js
Copy file name to clipboard+18-18Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
32 | 32 | |
33 | | - |
34 | | - |
35 | | - |
| 33 | + |
| 34 | + |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
Collapse file
test/parallel/test-vm-run-in-new-context.js
Copy file name to clipboardExpand all lines: test/parallel/test-vm-run-in-new-context.js+18-18Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | | - |
36 | | - |
37 | | - |
| 35 | + |
| 36 | + |
| 37 | + |
38 | 38 | |
39 | 39 | |
40 | | - |
| 40 | + |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
|
0 commit comments