Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/NaN/S15.1.1.1_A2_T1.js

raw
1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The NaN is ReadOnly
6 es5id: 15.1.1.1_A2_T1
7 description: Checking typeof Functions
8 includes: [propertyHelper.js]
9 ---*/
10
11 // CHECK#1
12 verifyNotWritable(this, "NaN", null, true);
13 if (typeof(NaN) === "boolean") {
14 $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN)));
15 }