aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures/utf8-bom.json
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-08-02 23:18:18 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-04 16:52:55 +0200
commitac722bbed6ea846991904ed205a6dc5ece4748c9 (patch)
treee241bad9cb5965b1a45eb10f8af76884d2acdd2d /test/fixtures/utf8-bom.json
parentf9cfd709460e04c8417e7784e6e3b264d3ff6c69 (diff)
downloadandroid-node-v8-ac722bbed6ea846991904ed205a6dc5ece4748c9.tar.gz
android-node-v8-ac722bbed6ea846991904ed205a6dc5ece4748c9.tar.bz2
android-node-v8-ac722bbed6ea846991904ed205a6dc5ece4748c9.zip
module: strip byte order marker when loading *.js and *.json files
BOMs make V8 raise a 'SyntaxError: Unexpected token ILLEGAL' exception. Fixes #1440.
Diffstat (limited to 'test/fixtures/utf8-bom.json')
-rw-r--r--test/fixtures/utf8-bom.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/utf8-bom.json b/test/fixtures/utf8-bom.json
new file mode 100644
index 0000000000..68264e1ab7
--- /dev/null
+++ b/test/fixtures/utf8-bom.json
@@ -0,0 +1 @@
+42