summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/10_Execution_Contexts/10.4_Establishing_An_Execution_Context/10.4.3_Entering_Function_Code/S10.4.3_A1.js
blob: 05f8924a421e9f1df8d936d18cc95d7585ab3609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2011 Google, Inc.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @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);
}