jscript: Added more apply and call tests.
This commit is contained in:
parent
14138e6f09
commit
7dcd1d06ef
|
@ -1644,9 +1644,11 @@ function callTest(argc) {
|
||||||
|
|
||||||
callTest.call(tmp, 1, 1);
|
callTest.call(tmp, 1, 1);
|
||||||
callTest.call(tmp, 2, 1, 2);
|
callTest.call(tmp, 2, 1, 2);
|
||||||
|
callTest.call(tmp, 3, 1, 2, 3);
|
||||||
|
|
||||||
callTest.apply(tmp, [1, 1]);
|
callTest.apply(tmp, [1, 1]);
|
||||||
callTest.apply(tmp, [2, 1, 2]);
|
callTest.apply(tmp, [2, 1, 2]);
|
||||||
|
callTest.apply(tmp, [3, 1, 2, 3]);
|
||||||
(function () { callTest.apply(tmp, arguments); })(2,1,2);
|
(function () { callTest.apply(tmp, arguments); })(2,1,2);
|
||||||
|
|
||||||
function callTest2() {
|
function callTest2() {
|
||||||
|
|
Loading…
Reference in New Issue