comparison: js/src/jit-test/tests/basic/bug642248.js
js/src/jit-test/tests/basic/bug642248.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 function test(makeNonArray) { |
|
2 function C() {} |
|
3 C.prototype = [] |
|
4 c = new C(); |
|
5 c.push("foo"); |
|
6 return c.length |
|
7 } |
|
8 assertEq(test(true), 1); |
|
9 var a = []; |
|
10 var b = Object.create(a); |