mirror of https://github.com/tc39/test262.git
15 lines
425 B
JavaScript
15 lines
425 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.2_R2.1;
|
|
* @section: 15.1.1.2, 15.1.2, 15.1.3;
|
|
* @description: The Infinity is not ReadOnly, check isNaN Functions that use ToNumber;
|
|
*/
|
|
|
|
// CHECK#1
|
|
Infinity = "string";
|
|
if (isNaN(Infinity) !== true) {
|
|
$ERROR('#1: Infinity = "string"; isNaN(Infinity) === true');
|
|
}
|