1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug642248.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +function test(makeNonArray) { 1.5 + function C() {} 1.6 + C.prototype = [] 1.7 + c = new C(); 1.8 + c.push("foo"); 1.9 + return c.length 1.10 +} 1.11 +assertEq(test(true), 1); 1.12 +var a = []; 1.13 +var b = Object.create(a);