Bug 989129 - ReferenceError: reference to undefined property options.bytes in workerlz4/lz4.js. r=yoric

This commit is contained in:
David Rajchenbach-Teller 2014-04-01 08:57:25 -04:00
parent af1d8aa35a
commit 041278819d
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ const EXCEPTION_NAMES = {
} else if (exn.constructor.name in EXCEPTION_NAMES) {
LOG("Sending back exception", exn.constructor.name);
post({fail: {exn: exn.constructor.name, message: exn.message,
fileName: exn.fileName, lineNumber: exn.lineNumber},
fileName: exn.moduleName || exn.fileName, lineNumber: exn.lineNumber},
id: id, durationMs: durationMs});
} else {
// Other exceptions do not, and should be propagated through DOM's

View File

@ -93,7 +93,7 @@ function compressFileContent(array, options = {}) {
exports.compressFileContent = compressFileContent;
function decompressFileContent(array, options = {}) {
let {ptr, bytes} = SharedAll.normalizeToPointer(array, options.bytes);
let {ptr, bytes} = SharedAll.normalizeToPointer(array, options.bytes || null);
if (bytes < HEADER_SIZE) {
throw new LZError("decompress", "becauseLZNoHeader", "Buffer is too short (no header)");
}