mirror of https://github.com/tc39/test262.git
16 lines
494 B
JavaScript
Executable File
16 lines
494 B
JavaScript
Executable File
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: The Infinity is ReadOnly
|
|
es5id: 15.1.1.2_A2_T1
|
|
description: Checking typeof Functions
|
|
includes: [propertyHelper.js, fnGlobalObject.js]
|
|
---*/
|
|
|
|
// CHECK#1
|
|
verifyNotWritable(fnGlobalObject(), "Infinity", null, true);
|
|
if (typeof(Infinity) === "boolean") {
|
|
$ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
|
|
}
|