js/src/tests/test262/ch10/10.4/10.4.2/S10.4.2.1_A1.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 // Copyright 2011 Google Inc.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * @path ch10/10.4/10.4.2/S10.4.2.1_A1.js
     6  * @description Strict indirect eval should not leak top level
     7  * declarations into the global scope
     8  * @onlyStrict
     9  */
    11 "use strict";
    12 if (!('foo' in this)) {
    13   (1,eval)('"use strict"; var foo = 88;');
    14   if ('foo' in this) {
    15     $ERROR("Strict indirect eval leaked a top level declaration");
    16   }
    17 }

mercurial