mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
906c046a08
CloneFunctionObject is split into the following: - CloneFunctionAndScript, which deep clones the function and its script, giving the cloned script a new static scope chain. This is used for cloning singleton lambdas and JSAPI cloning. For singleton lambdas, the original and the clone script have the same static scope chain. For JSAPI cloning, a new static scope is provided (either null, for a clean global, or StaticPollutingGlobalObject, for a polluted global). - CloneFunctionReuseScript, which clones the function but reuses the script, and thus keeps the same static scope chain. CloneScript is split into the following: - CloneGlobalScript, which clones a script with and gives it a new static scope. - CloneScriptIntoFunction, which clones a script into a JSFunction and gives it a new static scope. Cloning a script into a new function container requires slightly different logic to hook up the static scope chain before cloning inner scripts. |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
src | ||
xpconnect |