Home | History | Annotate | Download | only in webkit

Lines Matching defs:call

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"
28 var myObject = { call: function() { return [myObject, "myObject.call"] } };
31 myFunctionWithCall.call = function (arg1) { return [this, "myFunctionWithCall.call", arg1] };
32 Function.prototype.aliasedCall = Function.prototype.call;
35 shouldBe("myObject.call()", '[myObject, "myObject.call"]');
37 shouldBe("myFunction.call(myObject, 'arg1')", '[myObject, "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]');
45 shouldBe("myFunctionWithCall.call(myObject, 'arg1')", '[myFunctionWithCall, "myFunctionWithCall.call", myObject]');