Commit e7c4dfb
test: invalid package.json causes error when require()ing in directory
Requiring a file from a directory that contains an invalid package.json
file should throw an error.
PR-URL: #10044
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 22226fa commit e7c4dfbCopy full SHA for e7c4dfb
File tree
Expand file treeCollapse file tree
3 files changed
+9
-0
lines changedOpen diff view settings
Filter options
- test
- fixtures/packages/invalid
- sequential
Expand file treeCollapse file tree
3 files changed
+9
-0
lines changedOpen diff view settings
Collapse file
test/fixtures/packages/invalid/index.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/fixtures/packages/invalid/package.json
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/sequential/test-module-loading.js
Copy file name to clipboardExpand all lines: test/sequential/test-module-loading.js+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
69 | 69 | |
70 | 70 | |
71 | 71 | |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
72 | 79 | |
73 | 80 | |
74 | 81 | |
|
0 commit comments