Lines Matching refs:this
8 // notice, this list of conditions and the following disclaimer.
10 // notice, this list of conditions and the following disclaimer in the
13 // THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
21 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 "This tests that we can correctly call Function.prototype.call in the DFG, but more precisely, that we give the correct this object in case it is undefined"
29 var myFunction = function (arg1) { return [this, "myFunction", arg1] };
30 var myFunctionWithCall = function (arg1) { return [this, "myFunctionWithCall", arg1] };
31 myFunctionWithCall.call = function (arg1) { return [this, "myFunctionWithCall.call", arg1] };
36 shouldBe("myFunction('arg1')", '[this, "myFunction", "arg1"]');
38 shouldBe("myFunction.call()", '[this, "myFunction", undefined]');
39 shouldBe("myFunction.call(null)", '[this, "myFunction", undefined]');
40 shouldBe("myFunction.call(undefined)", '[this, "myFunction", undefined]');
42 shouldBe("myFunction.aliasedCall()", '[this, "myFunction", undefined]');
43 shouldBe("myFunction.aliasedCall(null)", '[this, "myFunction", undefined]');
44 shouldBe("myFunction.aliasedCall(undefined)", '[this, "myFunction", undefined]');