diff options
author | Gus Caplan <me@gus.host> | 2019-05-18 22:48:46 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2019-05-26 13:04:29 -0500 |
commit | e2c0c0c68074c539ae2ae30debdeafb9f94d989b (patch) | |
tree | 4b1748c744aa778f688804258c432cd5986cba64 /test/fixtures/utf8-shebang-bom.js | |
parent | 73c16b11e006256c2d41e70e964a4960ba435759 (diff) | |
download | android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.tar.gz android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.tar.bz2 android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.zip |
lib: rework logic of stripping BOM+Shebang from commonjs
Fixes https://github.com/nodejs/node/issues/27767
PR-URL: https://github.com/nodejs/node/pull/27768
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/fixtures/utf8-shebang-bom.js')
-rw-r--r-- | test/fixtures/utf8-shebang-bom.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fixtures/utf8-shebang-bom.js b/test/fixtures/utf8-shebang-bom.js new file mode 100644 index 0000000000..4ff8fd8d45 --- /dev/null +++ b/test/fixtures/utf8-shebang-bom.js @@ -0,0 +1,2 @@ +#!shebang +module.exports = 42;
\ No newline at end of file |