diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-27 16:42:03 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-01 10:01:15 -0400 |
commit | 702331be906fe58e0ef66c7b31c7d2aeb3af3421 (patch) | |
tree | 442ea0f7c65b413f36d0dc1b5c6e9b187e337e5f /test/sequential | |
parent | abfc8ae89461139d36fc12803a4e8c1d86ba2fd0 (diff) | |
download | android-node-v8-702331be906fe58e0ef66c7b31c7d2aeb3af3421.tar.gz android-node-v8-702331be906fe58e0ef66c7b31c7d2aeb3af3421.tar.bz2 android-node-v8-702331be906fe58e0ef66c7b31c7d2aeb3af3421.zip |
lib: no need to strip BOM or shebang for scripts
PR-URL: https://github.com/nodejs/node/pull/27375
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-module-loading.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js index 94acdb191b..2e55eb2936 100644 --- a/test/sequential/test-module-loading.js +++ b/test/sequential/test-module-loading.js @@ -355,7 +355,7 @@ assert.strictEqual(require('../fixtures/utf8-bom.json'), 42); // Loading files with BOM + shebang. // See https://github.com/nodejs/node/issues/27767 assert.throws(() => { - require('../fixtures/utf8-bom-shebang.js'); + require('../fixtures/utf8-bom-shebang-shebang.js'); }, { name: 'SyntaxError' }); assert.strictEqual(require('../fixtures/utf8-shebang-bom.js'), 42); |