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:
Robert Sayre 2010-09-23 13:56:11 -04:00
Родитель 566cf43ea4
Коммит 6cd6f4d73e
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -966,9 +966,11 @@ class TypedArrayTemplate
obj->setSharedNonNativeMap();
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: