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