1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/testBug771242.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +a = function() { 1.5 + b = newGlobal() 1.6 +}; 1.7 +c = [0, 0] 1.8 +c.sort(a) 1.9 +function d() { 1.10 + yield arguments[4] 1.11 +} 1.12 +b.iterate = d 1.13 +f = Proxy.create(b) 1.14 +e = Iterator(f, true) 1.15 +for (p in f) { 1.16 + e.next() 1.17 +}