projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
testCrossGlobalInvokeSession.js
1
otherGlobal = newGlobal("same-compartment");
2
otherGlobal.poison = Proxy.create({});
3
callee = new otherGlobal.Function("return this.poison;");
4
5
var caught = false;
6
try {
7
[1,2,3,4,5,6,7,8].sort(callee);
8
} catch(e) {
9
assertEq(e instanceof Error, true);
10
caught = true;
11
}
12
assertEq(caught, true);