Loading js/src/debugger/Object.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -2378,6 +2378,11 @@ bool DebuggerObject::forceLexicalInitializationByName( Rooted<GlobalObject*> referent(cx, &object->referent()->as<GlobalObject>()); // Shape::search can end up allocating a new BaseShape in Shape::cachify so // we need to be in the right compartment here. Maybe<AutoRealm> ar; EnterDebuggeeObjectRealm(cx, ar, referent); RootedObject globalLexical(cx, &referent->lexicalEnvironment()); RootedObject pobj(cx); Rooted<PropertyResult> prop(cx); Loading js/src/vm/NativeObject-inl.h +2 −0 Original line number Diff line number Diff line Loading @@ -698,6 +698,8 @@ static MOZ_ALWAYS_INLINE bool LookupOwnPropertyInline( } } MOZ_ASSERT(cx->compartment() == obj->compartment()); // Check for a native property. Call Shape::search directly (instead of // NativeObject::lookup) because it's inlined. if (Shape* shape = obj->lastProperty()->search(cx, id)) { Loading Loading
js/src/debugger/Object.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -2378,6 +2378,11 @@ bool DebuggerObject::forceLexicalInitializationByName( Rooted<GlobalObject*> referent(cx, &object->referent()->as<GlobalObject>()); // Shape::search can end up allocating a new BaseShape in Shape::cachify so // we need to be in the right compartment here. Maybe<AutoRealm> ar; EnterDebuggeeObjectRealm(cx, ar, referent); RootedObject globalLexical(cx, &referent->lexicalEnvironment()); RootedObject pobj(cx); Rooted<PropertyResult> prop(cx); Loading
js/src/vm/NativeObject-inl.h +2 −0 Original line number Diff line number Diff line Loading @@ -698,6 +698,8 @@ static MOZ_ALWAYS_INLINE bool LookupOwnPropertyInline( } } MOZ_ASSERT(cx->compartment() == obj->compartment()); // Check for a native property. Call Shape::search directly (instead of // NativeObject::lookup) because it's inlined. if (Shape* shape = obj->lastProperty()->search(cx, id)) { Loading