зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015791
- Stop assuming that all TypedArray classes are initialized simultaneously. r=luke
This commit is contained in:
Родитель
f901d16fc0
Коммит
086e3489a6
|
@ -245,15 +245,10 @@ class GlobalObject : public JSObject
|
|||
bool dataViewClassInitialized() const {
|
||||
return classIsInitialized(JSProto_DataView);
|
||||
}
|
||||
bool typedArrayClassesInitialized() const {
|
||||
// This alias exists only for clarity: in reality all the typed array
|
||||
// classes constitute a (semi-)coherent whole.
|
||||
return classIsInitialized(JSProto_DataView);
|
||||
}
|
||||
|
||||
Value createArrayFromBufferHelper(uint32_t slot) const {
|
||||
JS_ASSERT(typedArrayClassesInitialized());
|
||||
JS_ASSERT(FROM_BUFFER_UINT8 <= slot && slot <= FROM_BUFFER_UINT8CLAMPED);
|
||||
JS_ASSERT(!getSlot(slot).isUndefined());
|
||||
return getSlot(slot);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче