mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Bug 915687 - Watch for type objects with lazy protos when merging off thread parses, r=billm.
This commit is contained in:
parent
9f7af3df42
commit
b4cd0d2371
@ -560,11 +560,11 @@ WorkerThreadState::finishParseTask(JSContext *maybecx, JSRuntime *rt, void *toke
|
||||
iter.next())
|
||||
{
|
||||
types::TypeObject *object = iter.get<types::TypeObject>();
|
||||
JSObject *proto = object->proto;
|
||||
if (!proto)
|
||||
TaggedProto proto(object->proto);
|
||||
if (!proto.isObject())
|
||||
continue;
|
||||
|
||||
JSProtoKey key = js_IdentifyClassPrototype(proto);
|
||||
JSProtoKey key = js_IdentifyClassPrototype(proto.toObject());
|
||||
if (key == JSProto_Null)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user