2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The activation object is initialised with a property with name arguments and attributes {DontDelete}
|
|
|
|
*
|
2011-10-03 22:04:52 +02:00
|
|
|
* @path ch10/10.1/S10.1.6_A1_T1.js
|
2011-09-14 07:37:44 +02:00
|
|
|
* @description Checking if deleting function parameter is possible
|
2011-09-24 01:16:28 +02:00
|
|
|
* @noStrict
|
2011-09-07 08:35:18 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
function f1(a){
|
|
|
|
delete a;
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
if (f1(1) !== 1)
|
|
|
|
$ERROR('#1: Function parameter was deleted');
|
2011-09-14 07:37:44 +02:00
|
|
|
|
2011-09-07 08:35:18 +02:00
|
|
|
|