-1:000000000000 | 0:5d9c9e6a0392 |
---|---|
1 // Copyright 2011 Google, Inc. All rights reserved. | |
2 // This code is governed by the BSD license found in the LICENSE file. | |
3 | |
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 */ | |
10 | |
11 "use strict"; | |
12 var that = (function() { return this; })(); | |
13 if (that !== undefined) { | |
14 $ERROR('#1: "this" leaked as: ' + that); | |
15 } | |
16 |