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