mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 989129 - ReferenceError: reference to undefined property options.bytes in workerlz4/lz4.js. r=yoric
This commit is contained in:
parent
af1d8aa35a
commit
041278819d
@ -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
|
||||
|
@ -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)");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user