michael@0: // Copyright 2011 Google, Inc. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * @path ch10/10.4/10.4.3/S10.4.3_A1.js michael@0: * @description When calling a strict anonymous function as a michael@0: * function, "this" should be bound to undefined. michael@0: * @onlyStrict michael@0: */ michael@0: michael@0: "use strict"; michael@0: var that = (function() { return this; })(); michael@0: if (that !== undefined) { michael@0: $ERROR('#1: "this" leaked as: ' + that); michael@0: } michael@0: