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 length with property
6 * attributes { DontEnum } and no others
7 *
8 * @path ch10/10.6/S10.6_A5_T3.js
9 * @description Checking if deleting arguments.length property fails
10 */
12 //CHECK#1
13 function f1(){
14 return (delete arguments.length);
15 }
17 try{
18 if(!f1()){
19 $ERROR("#1: A property length have attribute { DontDelete }");
20 }
21 }
22 catch(e){
23 $ERROR("#1: arguments object don't exists");
24 }
26 //CHECK#2
27 var f2 = function(){
28 return (delete arguments.length);
29 }
31 try{
32 if(!f2()){
33 $ERROR("#2: A property length have attribute { DontDelete }");
34 }
35 }
36 catch(e){
37 $ERROR("#2: arguments object don't exists");
38 }