1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_2/FunctionObjects/apply-001-n.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 + 1.10 +print("STATUS: f.apply crash test."); 1.11 + 1.12 +print("BUGNUMBER: 21836"); 1.13 + 1.14 +function f () 1.15 +{ 1.16 +} 1.17 + 1.18 +var SECTION = "apply-001-n"; 1.19 +var VERSION = "ECMA_1"; 1.20 +startTest(); 1.21 +var TITLE = "f.apply(2,2) doesn't crash"; 1.22 + 1.23 +writeHeaderToLog( SECTION + " "+ TITLE); 1.24 + 1.25 +DESCRIPTION = "f.apply(2,2) doesn't crash"; 1.26 +EXPECTED = "error"; 1.27 + 1.28 +new TestCase( SECTION, "f.apply(2,2) doesn't crash", "error", eval("f.apply(2,2)") ); 1.29 + 1.30 +test(); 1.31 + 1.32 +