summaryrefslogtreecommitdiff
path: root/test/built-ins/Infinity/S15.1.1.2_A2_T1.js
blob: 1575771b246b39e0b129274164ac90e73f43ffac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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]
---*/

// CHECK#1
verifyNotWritable(this, "Infinity", null, true);
if (typeof(Infinity) === "boolean") {
  $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity)));
}