diff options
author | max99x <max99x@gmail.com> | 2011-07-30 02:46:20 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-30 02:46:20 +0300 |
commit | 7412ceb37a6789876a0d2055f6bb584d0938bc24 (patch) | |
tree | a1828b13ac845e5d176b8e2834c2d0ca8cbbaf77 /src | |
parent | 16f60de7f278ce8fb38253cfb1bf8d218dfe9ce9 (diff) |
Minor polish in response to review comments.
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preamble.js b/src/preamble.js index bf6628ae..f6aaed14 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -483,7 +483,7 @@ function __shutdownRuntime__() { if (typeof func === 'number') { func = FUNCTION_TABLE[func]; } - func(atexit.arg); + func(atexit.arg === undefined ? null : atexit.arg); } // allow browser to GC, set heaps to null? @@ -553,7 +553,7 @@ function intArrayFromString(stringy, dontAddNull) { var chr = stringy.charCodeAt(i); if (chr > 0xFF) { #if ASSERTIONS - assert(false, 'String character code not inside 0 - 0xFF.'); + assert(false, 'Character code ' + chr + ' (' + stringy[i] + ') not in 0x00-0xFF.'); #endif chr &= 0xFF; } @@ -573,7 +573,7 @@ function intArrayToString(array) { var chr = array[i]; if (chr > 0xFF) { #if ASSERTIONS - assert(false, 'String character code not inside 0 - 0xFF.'); + assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') not in 0x00-0xFF.'); #endif chr &= 0xFF; } |