2015-05-14 17:22:12 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
info: The NaN is DontDelete
|
|
|
|
es5id: 15.1.1.2_A3_T1
|
|
|
|
description: Use delete
|
2016-04-22 19:07:00 +02:00
|
|
|
includes: [propertyHelper.js]
|
2015-05-14 17:22:12 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
// CHECK#1
|
2016-04-22 19:07:00 +02:00
|
|
|
verifyNotConfigurable(this, "NaN");
|
2015-05-14 17:22:12 +02:00
|
|
|
|
|
|
|
try {
|
2016-04-22 19:07:00 +02:00
|
|
|
if (delete this.NaN !== false) {
|
2015-05-14 17:22:12 +02:00
|
|
|
$ERROR('#1: delete NaN === false.');
|
|
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
if (e instanceof Test262Error) throw e;
|
|
|
|
assert(e instanceof TypeError);
|
|
|
|
}
|