1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug678090.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +// |jit-test| error:ReferenceError 1.5 + 1.6 +// Binary: cache/js-dbg-64-609f37c36bd7-linux 1.7 +// Flags: -j -m -a 1.8 +// 1.9 + 1.10 +function toSource(arr) { 1.11 + for (i=0; i<len; i++) {} 1.12 +} 1.13 +test(); 1.14 +function test() { 1.15 + function gen() { 1.16 + var c = test; 1.17 + try { 1.18 + yield c; 1.19 + } finally { 1.20 + this.toSource(); 1.21 + } 1.22 + } 1.23 + var iter = gen(); 1.24 + for (i in iter) { 1.25 + 500(); 1.26 + } 1.27 +}