summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1300548.js
blob: f70f560bfc0a400b8b819159388d6132a16c7a18 (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.toSource());
g2.eval(f.toSource());

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