summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/bug642248.js
blob: 8c37b76759208b4792125f6f1fa7faefaf273800 (plain)
1
2
3
4
5
6
7
8
9
10
function test(makeNonArray) {
    function C() {}
    C.prototype = []
    c = new C();
    c.push("foo");
    return c.length
}
assertEq(test(true), 1);
var a = [];
var b = Object.create(a);