summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch10/10.4/10.4.3/S10.4.3_A1.js
blob: ea2432219a5461620c78a44b953add87ce4c1c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2011 Google, Inc.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @path ch10/10.4/10.4.3/S10.4.3_A1.js
 * @description When calling a strict anonymous function as a
 * function, "this" should be bound to undefined.
 * @onlyStrict
 */

"use strict";
var that = (function() { return this; })();
if (that !== undefined) {
  $ERROR('#1: "this" leaked as: ' + that);
}