comparison: js/src/jit-test/tests/basic/bug642248.js
js/src/jit-test/tests/basic/bug642248.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
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); |