summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1300548.js
blob: 6f3def77c2f5d34becfeaac51a3a105d0faa8934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var g1 = newGlobal();
var g2 = newGlobal({sameZoneAs: g1});
function f() {
    var o = Object.create(null);
    for (var p in o) {};
}
g1.eval(f.toString());
g2.eval(f.toString());

for (var i=0; i<10; i++) {
    g1.eval("f()");
    g2.eval("f()");
}