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.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: >
|
|
|
|
Since arguments property has attribute { DontDelete }, only its elements
|
|
|
|
can be deleted
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 13_A11_T3
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Deleting arguments[i] and returning result of the operation
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
function __func(){
|
2014-08-05 17:38:52 +02:00
|
|
|
var was_del=false;
|
|
|
|
for (var i=0; i < arguments.length; i++)
|
2011-09-07 08:35:18 +02:00
|
|
|
was_del= was_del || delete arguments[i];
|
|
|
|
return was_del;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#1
|
|
|
|
if (!__func("A","B",1,2)) {
|
|
|
|
$ERROR('#1: Since arguments property has attribute { DontDelete } elements of arguments can be deleted');
|
|
|
|
}
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|