mirror of https://github.com/tc39/test262.git
15 lines
395 B
JavaScript
15 lines
395 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* @name: S15.1.1.1_R2.2;
|
|
* @section: 15.1.1.1, 15.1.2, 15.1.3;
|
|
* @description: The NaN is not ReadOnly, check isFinite Functions that use ToNumber;
|
|
*/
|
|
|
|
// CHECK#1
|
|
NaN = 1;
|
|
if (isFinite(NaN) !== true) {
|
|
$ERROR('#1: NaN = 1; isFinite(NaN) === true');
|
|
}
|