summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNewWithClone.js
blob: ef976df5858da4653d70c35090491d6c74395726 (plain)
1
2
3
4
5
6
7
with({}) {
    function f() {
        this.foo = "bar";
    }
    o = new f();
    assertEq(o.foo, "bar");
}