mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* The Infinity is not ReadOnly
|
|
*
|
|
* @path ch15/15.1/15.1.1/15.1.1.2/S15.1.1.2_A2_T2.js
|
|
* @description Checking typeof Functions
|
|
*/
|
|
|
|
// CHECK#1
|
|
var Finite = true;
|
|
if (typeof(Finite) !== "boolean") {
|
|
$ERROR('#1: Finite = true; typeof(NaN) === "boolean". Actual: ' + (typeof(NaN)));
|
|
}
|
|
|