diff options
author | max99x <max99x@gmail.com> | 2011-08-23 05:25:40 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-23 05:25:40 +0300 |
commit | 9cf10ae755d5ef32d558d945c25464e1ba564738 (patch) | |
tree | 2b30cfc126fcd87ef244dfe5bd85938350324468 | |
parent | 4d12c91bfb26979d00714843a038f916629e040d (diff) |
Minor library fix to prevent UgilfyJS from embedding nulls in output.
-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 0d802409..2cbd9cf0 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -389,9 +389,10 @@ function Pointer_stringify(ptr) { var ret = ""; var i = 0; var t; + var nullByte = String.fromCharCode(0); while (1) { t = String.fromCharCode({{{ makeGetValue('ptr', 'i', 'i8', 0, 1) }}}); - if (t == "\0") { break; } else {} + if (t == nullByte) { break; } else {} ret += t; i += 1; } |