1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug790629-1.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +// 'this' in generator-expression in strict-mode toplevel 1.5 +// is the same as global 'this'. 1.6 + 1.7 +"use strict"; 1.8 + 1.9 +var it1 = (this for (x of [0])); 1.10 +assertEq(it1.next(), this); 1.11 + 1.12 +var it2 = (this for (x of (this for (y of (this for (z of [0])))))); 1.13 +assertEq(it2.next(), this);