diff options
author | max99x <max99x@gmail.com> | 2011-07-30 02:57:03 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-30 02:57:03 +0300 |
commit | 0e64105b7e8463ef65a2004d3b0d47a1aa61d98d (patch) | |
tree | 98f3e4c190334aee188995724c2a4cd3bdd8d453 /src/preamble.js | |
parent | 7412ceb37a6789876a0d2055f6bb584d0938bc24 (diff) |
Minor documentation and error message polish.
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js index f6aaed14..21e9021e 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -553,7 +553,7 @@ function intArrayFromString(stringy, dontAddNull) { var chr = stringy.charCodeAt(i); if (chr > 0xFF) { #if ASSERTIONS - assert(false, 'Character code ' + chr + ' (' + stringy[i] + ') not in 0x00-0xFF.'); + assert(false, 'Character code ' + chr + ' (' + stringy[i] + ') at offset ' + 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, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') not in 0x00-0xFF.'); + assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.'); #endif chr &= 0xFF; } |