2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
6 function strictThis() { 'use strict'; return this; }
8 /* Check that calls of flat closure slots get the right |this|. */
10 function h() { return g(); }
13 assertEq(flat(strictThis)(), undefined);
15 /* Check that calls up upvars get the right |this|. */
22 assertEq(upvar(strictThis), undefined);
24 /* Check that calls to with-object properties get an appropriate 'this'. */
25 var obj = { f: strictThis };
28 * The method won't compile anything containing a 'with', but it can
31 function g() { return f(); }
35 reportCompare(true, true);