test262/test/suite/ch08/8.6/8.6.1/S8.6.1_A3.js
2011-10-03 13:04:52 -07:00

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" ');
};
//
//////////////////////////////////////////////////////////////////////////////