Skip to content

Commit

Permalink
Bug 1142311 part 1. Stop parenting self-hosted objects to the intrins…
Browse files Browse the repository at this point in the history
…ics holder.
  • Loading branch information
rmottola committed Apr 13, 2019
1 parent 1e82dc1 commit 3cb7980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/vm/GlobalObject.cpp
Expand Up @@ -605,7 +605,7 @@ GlobalObject::getSelfHostedFunction(JSContext* cx, HandleAtom selfHostedName, Ha

JSFunction *fun =
NewScriptedFunction(cx, nargs, JSFunction::INTERPRETED_LAZY,
holder, name, JSFunction::ExtendedFinalizeKind, SingletonObject);
cx->global(), name, JSFunction::ExtendedFinalizeKind, SingletonObject);
if (!fun)
return false;
fun->setIsSelfHostedBuiltin();
Expand Down

0 comments on commit 3cb7980

Please sign in to comment.