michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var s = "grape"; michael@0: function f() { "use strict"; return this; } michael@0: var p = Proxy.createFunction(f, f); michael@0: String.prototype.p = p; michael@0: assertEq(s.p(), "grape"); michael@0: michael@0: reportCompare(true,true);