| 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: If the property doesn't have the DontDelete attribute, remove the property |
| 6 |
es5id: 11.4.1_A3.3_T2 |
| 7 |
description: Checking declared variable |
| 8 |
---*/ |
| 9 |
|
| 10 |
//CHECK#1 |
| 11 |
function MyFunction(){}; |
| 12 |
MyFunction.prop = 1; |
| 13 |
delete MyFunction.prop; |
| 14 |
if (MyFunction.prop !== undefined) { |
| 15 |
$ERROR('#1: function MyFunction(){}; MyFunction.prop = 1; delete MyFunction.prop; MyFunction.prop === undefined. Actual: ' + (MyFunction.prop)); |
| 16 |
|
| 17 |
} |