diff options
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; } |