js/src/jit-test/tests/ion/bug798823.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 function g() {
     2   switch (0) {
     3   default:
     4     w = newGlobal('');
     5   }
     6   return function(f, code) {
     7     try {
     8       evalcx(code, w)
     9     } catch (e) {}
    10   }
    11 }
    13 function f(code) {
    14   h(Function(code), code);
    15 }
    16 h = g()
    17 f("\
    18     x = [];\
    19     y = new Set;\
    20     z = [];\
    21     Object.defineProperty(x, 5, {\
    22         get: (function(j) {}),\
    23     });\
    24     Object.defineProperty(z, 3, {});\
    25     z[9] = 1;\
    26     x.shift();\
    27 ");
    28 f("\
    29     z.every(function() {\
    30         x.filter(function(j) {\
    31             if (j) {} else {\
    32                 y.add()\
    33             }\
    34         });\
    35         return 2\
    36     })\
    37 ");

mercurial