~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/testBug780288-2.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
s = newGlobal()
 
2
try {
 
3
  evalcx("\
 
4
        Object.defineProperty(this,\"i\",{enumerable:true,get:function(){t}});\
 
5
        for each(y in this)true\
 
6
  ", s)
 
7
} catch (e) {}
 
8
try {
 
9
  evalcx("\
 
10
        for(z=0,(7).watch(\"\",eval);;g){\
 
11
          if(z=1){({t:function(){}})\
 
12
        }\
 
13
        ", s)
 
14
} catch (e) {}
 
15
try {
 
16
  evalcx("\
 
17
        Object.defineProperty(this,\"g2\",{get:function(){return this}});\
 
18
        g2.y(\"\")\
 
19
  ", s)
 
20
} catch (e) {}