| 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_T1 |
| 7 |
description: Checking declared variable |
| 8 |
flags: [noStrict] |
| 9 |
---*/ |
| 10 |
|
| 11 |
//CHECK#1 |
| 12 |
try { |
| 13 |
x = 1; |
| 14 |
delete x; |
| 15 |
x; |
| 16 |
$ERROR('#1: x = 1; delete x; x is not exist'); |
| 17 |
} catch (e) { |
| 18 |
if (e instanceof ReferenceError !== true) { |
| 19 |
$ERROR('#1: x = 1; delete x; x is not exist'); |
| 20 |
} |
| 21 |
} |