summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/object/S8.6.1_A3.js
blob: af085a0cf6ecbea834e3c184d64117795440e08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
    A property can have attribute DontDelete like NaN propertie of Number
    object
es5id: 8.6.1_A3
description: Try to delete Number.NaN
flags: [noStrict]
---*/

//////////////////////////////////////////////////////////////////////////////
//CHECK#1
if (delete Number.NaN !== false){
  throw new Test262Error('#1: delete Number.NaN === false. Actual: ' + (delete Number.NaN));
};
//
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (typeof(Number.NaN) === "undefined"){
  throw new Test262Error('#2: delete Number.NaN; typeof(Number.NaN) !== "undefined" ');
};
//
//////////////////////////////////////////////////////////////////////////////

reportCompare(0, 0);