js/src/jit-test/tests/basic/bug651966.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.

     2 function f(code) {
     3     g = eval("(function(){" + code + "})");
     4     g()
     5 }
     6 f();
     7 f();
     8 f();
     9 f();
    10 f();
    11 f();
    12 f();
    13 f();
    14 f();
    15 f();
    16 f();
    17 f();
    18 f();
    19 f();
    20 f();
    21 f();
    22 try { f("function x(){}(x())"); } catch (e) {}
    24 function f2() {
    25     a = {
    26         x
    27     } = x, (x._)
    28     function
    29     x()({})
    30 }
    31 try { f2(); } catch (e) {}
    33 function f3() {
    34   var x = 0;
    35   with ({}) { x = 'three'; }
    36   return x;
    37 }
    38 f3();

mercurial