summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/script-tests/call-apply-crash.js
blob: e0c8e6358da0638f7dcbc68b3ec333a5577cfa2e (plain)
1
2
3
4
5
6
7
8
9
10
description("Test to ensure that the registerfile is grown correctly when calling apply");

function testLog() { testPassed(this); }
(function () {
    Function.prototype.call.apply(testLog, arguments);
})('Did not crash using apply', 0, 0); // needs 3+ arguments
(function () {
    arguments; // reify the arguments object.
    Function.prototype.call.apply(testLog, arguments);
})('Did not crash using apply', 0, 0); // needs 3+ arguments