diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index b5a8930a..35121317 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -557,8 +557,9 @@ function intArrayFromString(stringy, dontAddNull) { ret.push(stringy.charCodeAt(i)); i = i + 1; } - if (!dontAddNull) + if (!dontAddNull) { ret.push(0); + } return ret; } Module['intArrayFromString'] = intArrayFromString; |