| 1 |
// Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
This test is actually testing the [[Delete]] internal method (8.12.8). Since the |
| 7 |
language provides no way to directly exercise [[Delete]], the tests are placed here. |
| 8 |
es5id: 11.4.1-0-1 |
| 9 |
description: delete operator as UnaryExpression |
| 10 |
flags: [noStrict] |
| 11 |
---*/ |
| 12 |
|
| 13 |
function testcase() { |
| 14 |
var x = 1; |
| 15 |
var y = 2; |
| 16 |
var z = 3; |
| 17 |
|
| 18 |
assert((!delete x || delete y), '(!delete x || delete y)'); |
| 19 |
assert(delete delete z, 'delete delete z'); |
| 20 |
} |
| 21 |
testcase(); |