gecko/js
Shu-yu Guo 906c046a08 Bug 1165486 - Restructure function and script cloning in light of PollutingGlobal scope changes. (r=Waldo)
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.
2015-06-17 21:26:57 -07:00
..
ductwork/debugger
examples
ipc Backed out changeset 94f14d6b26d5 (bug 1125624) 2015-06-17 11:02:59 +02:00
public Bug 1169731 - [[Call]] on a class constructor should throw. (r=jandem) 2015-06-17 14:37:49 -07:00
src Bug 1165486 - Restructure function and script cloning in light of PollutingGlobal scope changes. (r=Waldo) 2015-06-17 21:26:57 -07:00
xpconnect Bug 1157456 - Re-wrap results in SavedFrame accessors; r=jorendorff 2015-06-17 13:18:16 -07:00