test: invalid package.json causes error when require()ing in directory · nodejs/node@6f2f02d · GitHub
Skip to content

Commit 6f2f02d

Browse files
Sam Shulladdaleax
authored andcommitted
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 6489a91 commit 6f2f02d

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{,}

test/sequential/test-module-loading.js

Lines changed: 7 additions & 0 deletions

0 commit comments

Comments
 (0)