зеркало из https://github.com/mozilla/gecko-dev.git
Fix test_canvas.html mochitest. Using preventExtensions on a huge typed array is a bad idea right now. Bug 598969. r=brendan
This commit is contained in:
Родитель
566cf43ea4
Коммит
6cd6f4d73e
|
@ -967,8 +967,10 @@ class TypedArrayTemplate
|
||||||
obj->clasp = fastClass();
|
obj->clasp = fastClass();
|
||||||
obj->setPrivate(tarray);
|
obj->setPrivate(tarray);
|
||||||
|
|
||||||
AutoIdVector props(cx);
|
// FIXME bug 599008. make it ok to call preventExtensions here.
|
||||||
return obj->preventExtensions(cx, &props);
|
// Keeping the boolean signature of this method for now.
|
||||||
|
obj->flags |= JSObject::NOT_EXTENSIBLE;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче