Bug 980962. Fix in-tree consumers to not construct typed arrays without "new". r=jorendorff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user