js/src/jit-test/tests/ion/bug798823.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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