js/src/jit-test/tests/ion/bug913749.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 y = new Float32Array(11);
     2 x = [];
     4 Object.defineProperty(x, 18, {
     5     get: (function() {
     6         y.length;
     7     }),
     8 });
     9 this.toSource();
    11 y = undefined;
    13 for (var i = 0; i < 3; i++) {
    14     try {
    15 	x.toString();
    16 	assertEq(0, 1);
    17     } catch (e) {
    18 	assertEq(e.message, "y is undefined");
    19     }
    20 }

mercurial