js/src/jit-test/tests/arrow-functions/strict-2.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // code in arrow function default arguments is strict if the body is strict
     3 load(libdir + "asserts.js");
     5 assertThrowsInstanceOf(
     6     () => Function("(a = function (obj) { with (obj) f(); }) => { 'use strict'; }"),
     7     SyntaxError);
     9 assertThrowsInstanceOf(
    10     () => Function("(a = obj => { with (obj) f(); }) => { 'use strict'; }"),
    11     SyntaxError);

mercurial