Bug 980962. Fix in-tree consumers to not construct typed arrays without "new". r=jorendorff

This commit is contained in:
Boris Zbarsky
2014-03-20 23:19:42 -04:00
parent 0e336f867d
commit 3591403a3b
48 changed files with 125 additions and 125 deletions

View File

@@ -304,7 +304,7 @@ MainPreferencesPropertyList.prototype = {
binaryStream.setInputStream(inputStream);
let bytes = binaryStream.readByteArray(inputStream.available());
this._dict = PropertyListUtils._readFromArrayBufferSync(
Uint8Array(bytes).buffer);
new Uint8Array(bytes).buffer);
return this._dict;
}
};