summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/isNaN/length.js
blob: 01e06d16024e06c4f8836aa4248f276ec14c9442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2016 The V8 Project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-isnan-number
description: >
  The length property of isNaN is 1
includes: [propertyHelper.js]
---*/

assert.sameValue(isNaN.length, 1, "The value of `isNaN.length` is `1`");

verifyNotEnumerable(isNaN, "length");
verifyNotWritable(isNaN, "length");
verifyConfigurable(isNaN, "length");

reportCompare(0, 0);