Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Arguments : ()
6 *
7 * @path ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js
8 * @description Function is declared with no FormalParameterList
9 */
11 function f_arg() {
12 return arguments;
13 }
15 //CHECK#1
16 if (f_arg().length !== 0) {
17 $ERROR('#1: function f_arg() {return arguments;} f_arg().length === 0. Actual: ' + (f_arg().length));
18 }
20 //CHECK#2
21 if (f_arg()[0] !== undefined) {
22 $ERROR('#2: function f_arg() {return arguments;} f_arg()[0] === undefined. Actual: ' + (f_arg()[0]));
23 }