mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882933 - Copy treatAsRunOnce bit when cloning scripts, don't clone scripts unnecessarily for arrow lambdas, r=luke.
This commit is contained in:
parent
128d5f8da8
commit
bd5bfb2841
@ -703,7 +703,7 @@ UseNewTypeForClone(JSFunction *fun)
|
||||
return true;
|
||||
|
||||
if (fun->isArrow())
|
||||
return true;
|
||||
return false;
|
||||
|
||||
if (fun->hasSingletonType())
|
||||
return false;
|
||||
|
@ -2425,6 +2425,7 @@ js::CloneScript(JSContext *cx, HandleObject enclosingScope, HandleFunction fun,
|
||||
dst->funNeedsDeclEnvObject = src->funNeedsDeclEnvObject;
|
||||
dst->funHasAnyAliasedFormal = src->funHasAnyAliasedFormal;
|
||||
dst->hasSingletons = src->hasSingletons;
|
||||
dst->treatAsRunOnce = src->treatAsRunOnce;
|
||||
dst->isGenerator = src->isGenerator;
|
||||
dst->isGeneratorExp = src->isGeneratorExp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user