js/src/jit-test/tests/basic/testBug780288-1.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/testBug780288-1.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +s = newGlobal()
     1.5 +try {
     1.6 +  evalcx("\
     1.7 +	Object.defineProperty(this,\"i\",{enumerable:true,get:function(){t}});\
     1.8 +	for each(y in this)true\
     1.9 +  ", s)
    1.10 +} catch (e) {}
    1.11 +try {
    1.12 +  evalcx("\
    1.13 +	for(z=0,(7).watch(\"\",eval);;g){\
    1.14 +	  if(z=1){({t:function(){}})\
    1.15 +	}\
    1.16 +	", s)
    1.17 +} catch (e) {}
    1.18 +try {
    1.19 +  evalcx("\
    1.20 +	Object.defineProperty(this,\"g2\",{get:function(){return this}});\
    1.21 +	g2.y()\
    1.22 +  ", s)
    1.23 +} catch (e) {}

mercurial