зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1034244 - Include TypedArrays in SpecialPowers Xray waiving list. r=mrbkap
Our Xrays to TypedArrays basically just say "this will be slow - clone instead". Let's just have SpecialPowers waive Xrays for them to make things work less surprisingly.
This commit is contained in:
Родитель
8d4a096eed
Коммит
ca35208187
|
@ -75,8 +75,12 @@ function wrapIfUnwrapped(x) {
|
|||
function isObjectOrArray(obj) {
|
||||
if (Object(obj) !== obj)
|
||||
return false;
|
||||
let arrayClasses = ['Object', 'Array', 'Int8Array', 'Uint8Array',
|
||||
'Int16Array', 'Uint16Array', 'Int32Array',
|
||||
'Uint32Array', 'Float32Array', 'Float64Array',
|
||||
'Uint8ClampedArray'];
|
||||
let className = Cu.getClassName(obj, true);
|
||||
return className == 'Object' || className == 'Array';
|
||||
return arrayClasses.indexOf(className) != -1;
|
||||
}
|
||||
|
||||
function callGetOwnPropertyDescriptor(obj, name) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче