Sha256: 56418dffbfed9b4a42c3d87222ed248c36f148dbd3ed7f29d4a56a3b57f8f623

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

function forVarInWith() {
    function foo() ({notk:42});
    function bar() ({p:1, q:2, r:3, s:4, t:5});
    var o = foo();
    var a = [];
    with (o) {
        for (var k in bar())
            a[a.length] = k;
    }
    return a.join("");
}
assertEq(forVarInWith(), "pqrst");

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
johnson19-2.0.0.pre3 vendor/tracemonkey/trace-test/tests/basic/forVarInWith.js
pre-johnson-2.0.0 vendor/tracemonkey/trace-test/tests/basic/forVarInWith.js
johnson-2.0.0.pre3 vendor/tracemonkey/trace-test/tests/basic/forVarInWith.js
johnson-2.0.0.pre2 vendor/tracemonkey/trace-test/tests/basic/forVarInWith.js
johnson-2.0.0.pre1 vendor/tracemonkey/trace-test/tests/basic/forVarInWith.js