| 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: The undefined is DontDelete |
| 6 |
es5id: 15.1.1.3_A3.1 |
| 7 |
es6id: 18.1.3 |
| 8 |
esid: sec-undefined |
| 9 |
description: Use delete |
| 10 |
includes: [propertyHelper.js] |
| 11 |
---*/ |
| 12 |
|
| 13 |
// CHECK#1 |
| 14 |
verifyNotConfigurable(this, "undefined"); |
| 15 |
|
| 16 |
try { |
| 17 |
if (delete this.undefined !== false) { |
| 18 |
$ERROR('#1: delete undefined === false.'); |
| 19 |
} |
| 20 |
} catch (e) { |
| 21 |
if (e instanceof Test262Error) throw e; |
| 22 |
assert(e instanceof TypeError); |
| 23 |
} |