mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 05:18:32 +02:00
28 lines
890 B
JavaScript
28 lines
890 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* A property can have attribute DontDelete like NaN propertie of Number object
|
|
*
|
|
* @path ch08/8.6/8.6.1/S8.6.1_A3.js
|
|
* @description Try to delete Number.NaN
|
|
* @noStrict
|
|
*/
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#1
|
|
if (delete Number.NaN !== false){
|
|
$ERROR('#1: delete Number.NaN === false. Actual: ' + (delete Number.NaN));
|
|
};
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//CHECK#2
|
|
if (typeof(Number.NaN) === "undefined"){
|
|
$ERROR('#2: delete Number.NaN; typeof(Number.NaN) !== "undefined" ');
|
|
};
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|