Commit ad39367
test: enforce strict mode in test-zlib-const
Instead of checking that assignments fail silently in sloppy mode, check
that they throw in strict mode.
PR-URL: #56689
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 9a1e314 commit ad39367Copy full SHA for ad39367
File tree
Expand file treeCollapse file tree
1 file changed
+9
-19
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+9
-19
lines changedOpen diff view settings
Collapse file
test/parallel/test-zlib-const.js
Copy file name to clipboardExpand all lines: test/parallel/test-zlib-const.js+9-19Lines changed: 9 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
2 | 2 | |
3 | 3 | |
4 | 4 | |
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
| 12 | + |
| 13 | + |
| 14 | + |
18 | 15 | |
19 | 16 | |
20 | 17 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
33 | 23 | |
34 | 24 | |
35 | 25 | |
|
0 commit comments