js/src/jit-test/tests/auto-regress/bug781364.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 // Binary: cache/js-dbg-64-21b4797e4cb3-linux
     2 // Flags: -m -a --ion-eager
     3 //
     4 k = m
     5 function h() {
     6   switch (true) {
     7   default:
     8     x = newGlobal('')
     9   }
    10   return function(f, code) {
    11     try {
    12       evalcx(code, x)
    13     } catch (e) {}
    14   }
    15 }
    16 function m() {
    17   f()
    18 }
    19 function g(code) {
    20   f = new Function(code);
    21   k(f, code)
    22 }
    23 g("k=h()")
    24 g("\
    25     a='';\
    26     Object.defineProperty(this,\"b\",{get:function(){a=this.d()}});\
    27     Object.defineProperty(this,\"c\",{get:function(){b}});\
    28     d=2;\
    29     b\
    30 ");
    31 g("b");
    32 g("b");
    33 g("for(v of c);");
    34 g("a=eval(\"function f(){}\");b")

mercurial