forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 619565 - Fix activation object handling by InvokeSessionGuard (r=…
…waldo,a=shaver) --HG-- extra : rebase_source : 24e4d6ecf1cb9696fda7468eb631f13d92d7ab7a
- Loading branch information
Luke Wagner
committed
Feb 24, 2011
1 parent
52b61d8
commit bfdc0fa
Showing
5 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// |jit-test| mjitalways;debug | ||
|
||
[1,2,3,4,5,6,7,8].forEach( | ||
function(x) { | ||
// evalInFrame means lightweight gets call obj | ||
assertEq(evalInFrame(0, "x"), x); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
otherGlobal = newGlobal("same-compartment"); | ||
otherGlobal.poison = Proxy.create({}); | ||
callee = new otherGlobal.Function("return this.poison;"); | ||
|
||
var caught = false; | ||
try { | ||
[1,2,3,4,5,6,7,8].sort(callee); | ||
} catch(e) { | ||
assertEq(e instanceof Error, true); | ||
caught = true; | ||
} | ||
assertEq(caught, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters