Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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 * A property is created with name callee with property
6 * attributes { DontEnum } and no others
7 *
8 * @path ch10/10.6/S10.6_A3_T4.js
9 * @description Overriding arguments.callee property
10 * @noStrict
11 */
13 var str = "something different";
14 //CHECK#1
15 function f1(){
16 arguments.callee = str;
17 return arguments;
18 }
20 try{
21 if(f1().callee !== str){
22 $ERROR("#1: A property callee have attribute { ReadOnly }");
23 }
24 }
25 catch(e){
26 $ERROR("#1: arguments object don't exists");
27 }
29 //CHECK#2
30 var f2 = function(){
31 arguments.callee = str;
32 return arguments;
33 }
34 try{
35 if(f2().callee !== str){
36 $ERROR("#2: A property callee have attribute { ReadOnly }");
37 }
38 }
39 catch(e){
40 $ERROR("#2: arguments object don't exists");
41 }