summaryrefslogtreecommitdiff
path: root/test/suite/sputnik/Conformance/08_Types/8.5_The_Number_Type/S8.5_A9.js
blob: da222ab3f239f527878fc56b2f1850da48b3cb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S8.5_A9;
 * @section: 8.5, 7.8.3;
 * @assertion: Globally defined variable NaN has not been altered by program execution;
 * @description: Try alter globally defined variable NaN;
 * @noStrict
*/

Number.NaN = 1;

if (Number.NaN === 1) {
  $ERROR('#1: Globally defined variable NaN has not been altered by program execution');
}