Debian Codegraph @

js/src/tests/test262/language/statements/function/S13_A11_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 Since arguments property has attribute { DontDelete }, only its elements
7 can be deleted
8 es5id: 13_A11_T1
9 description: Returning result of "delete arguments"
10 flags: [noStrict]
11 ---*/
12
13 function __func(){ return delete arguments;}
14
15 //////////////////////////////////////////////////////////////////////////////
16 //CHECK#1
17 if (__func("A","B",1,2)) {
18 throw new Test262Error('#1: arguments property has attribute { DontDelete }');
19 }
20 //
21 //////////////////////////////////////////////////////////////////////////////
22
23 reportCompare(0, 0);