summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-02-24 21:59:25 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2016-02-25 13:21:53 +0100
commit96adbe95037fcc572d34484ea5d7ecd82911fda6 (patch)
treef420162784e09363ee3615af3c3aada9c2684bc2 /tools
parentcdc7e025e0d3b9f18403c53d523f99cc91051e58 (diff)
downloadandroid-node-v8-96adbe95037fcc572d34484ea5d7ecd82911fda6.tar.gz
android-node-v8-96adbe95037fcc572d34484ea5d7ecd82911fda6.tar.bz2
android-node-v8-96adbe95037fcc572d34484ea5d7ecd82911fda6.zip
src,tools: drop nul byte from built-in source code
PR-URL: https://github.com/nodejs/node/pull/5418 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/js2c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/js2c.py b/tools/js2c.py
index 9c5878a668..761e80be59 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -42,7 +42,7 @@ import jsmin
def ToCArray(filename, lines):
- return ','.join(str(ord(c)) for c in lines + '\0')
+ return ','.join(str(ord(c)) for c in lines)
def CompressScript(lines, do_jsmin):
@@ -221,7 +221,7 @@ static const struct _native natives[] = {
NATIVE_DECLARATION = """\
- { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native)-1 },
+ { "%(id)s", %(escaped_id)s_native, sizeof(%(escaped_id)s_native) },
"""
SOURCE_DECLARATION = """\