js/src/tests/test262/ch10/10.4/10.4.3/S10.4.3_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.3/S10.4.3_A1.js
     6  * @description When calling a strict anonymous function as a
     7  * function, "this" should be bound to undefined.
     8  * @onlyStrict
     9  */
    11 "use strict";
    12 var that = (function() { return this; })();
    13 if (that !== undefined) {
    14   $ERROR('#1: "this" leaked as: ' + that);
    15 }

mercurial