js/src/tests/test262/ch10/10.4/10.4.2/S10.4.2.1_A1.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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