mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
125d4d111e
commit
2ae5db2ff0
@ -967,8 +967,10 @@ class TypedArrayTemplate
|
||||
obj->clasp = fastClass();
|
||||
obj->setPrivate(tarray);
|
||||
|
||||
AutoIdVector props(cx);
|
||||
return obj->preventExtensions(cx, &props);
|
||||
// FIXME bug 599008. make it ok to call preventExtensions here.
|
||||
// Keeping the boolean signature of this method for now.
|
||||
obj->flags |= JSObject::NOT_EXTENSIBLE;
|
||||
return true;
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user