diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug780288-2.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testBug780288-2.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug780288-2.js b/js/src/jit-test/tests/basic/testBug780288-2.js new file mode 100644 index 000000000..8c4c1737c --- /dev/null +++ b/js/src/jit-test/tests/basic/testBug780288-2.js @@ -0,0 +1,20 @@ +s = newGlobal() +try { + evalcx("\ + Object.defineProperty(this,\"i\",{enumerable:true,get:function(){t}});\ + for each(y in this)true\ + ", s) +} catch (e) {} +try { + evalcx("\ + for(z=0,(7).watch(\"\",eval);;g){\ + if(z=1){({t:function(){}})\ + }\ + ", s) +} catch (e) {} +try { + evalcx("\ + Object.defineProperty(this,\"g2\",{get:function(){return this}});\ + g2.y(\"\")\ + ", s) +} catch (e) {} |