mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917441 - Add missing #ifdef JS_ION.
This commit is contained in:
parent
110933c242
commit
f93bc40c78
@ -1228,6 +1228,7 @@ SetObjectElementOperation(JSContext *cx, Handle<JSObject*> obj, HandleId id, con
|
||||
{
|
||||
types::TypeScript::MonitorAssign(cx, obj, id);
|
||||
|
||||
#ifdef JS_ION
|
||||
if (obj->isNative() && JSID_IS_INT(id)) {
|
||||
uint32_t length = obj->getDenseInitializedLength();
|
||||
int32_t i = JSID_TO_INT(id);
|
||||
@ -1237,6 +1238,7 @@ SetObjectElementOperation(JSContext *cx, Handle<JSObject*> obj, HandleId id, con
|
||||
script->baselineScript()->noteArrayWriteHole(pc - script->code);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (obj->isNative() && !JSID_IS_INT(id) && !obj->setHadElementsAccess(cx))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user