diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/basic/bug790629-1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/basic/bug790629-1.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,10 @@ +// 'this' in generator-expression in strict-mode toplevel +// is the same as global 'this'. + +"use strict"; + +var it1 = (this for (x of [0])); +assertEq(it1.next(), this); + +var it2 = (this for (x of (this for (y of (this for (z of [0])))))); +assertEq(it2.next(), this);