1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug643670.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +// |jit-test| error:ReferenceError 1.5 + 1.6 +// Binary: cache/js-dbg-32-55f463c562d4-linux 1.7 +// Flags: -m -n -a 1.8 +// 1.9 +o3 = evalcx("split") 1.10 +function f3(o) { 1.11 + try { 1.12 + new o 1.13 + } catch(e) {} 1.14 +} 1.15 +function f16(o) { 1.16 + Object.getOwnPropertyNames(o); 1.17 + o.__defineGetter__("prototype", function() {}) 1.18 +} 1.19 +for (;;) { 1.20 + new f3(o3); 1.21 + f16(o3) 1.22 +}