Debian Codegraph @

js/src/tests/test262/language/function-code/S10.1.6_A1_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 The activation object is initialised with a property with name arguments
7 and attributes {DontDelete}
8 es5id: 10.1.6_A1_T1
9 description: Checking if deleting function parameter is possible
10 flags: [noStrict]
11 ---*/
12
13 //CHECK#1
14 function f1(a){
15 delete a;
16 return a;
17 }
18 if (f1(1) !== 1)
19 throw new Test262Error('#1: Function parameter was deleted');
20
21 reportCompare(0, 0);