summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNonStubGetter.js
blob: 58a698eb4fe3100bece3425fdc88a6915707c378 (plain)
1
2
3
4
5
6
7
function testNonStubGetter() {
    { let [] = []; (this.watch("x", function(p, o, n) { return /a/g.exec(p, o, n); })); };
    (function () { (eval("(function(){for each (x in [1, 2, 2]);});"))(); })();
    this.unwatch("x");
    return "ok";
}
assertEq(testNonStubGetter(), "ok");