summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/fromCodePoint/length.js
blob: 5708d475e6593039d2a630cde9c548def6c4ccad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 21.1.2.2
description: >
  The length property of the String.fromCodePoint constructor is 1.
includes: [propertyHelper.js]
features: [String.fromCodePoint]
---*/

assert.sameValue(
  String.fromCodePoint.length, 1,
  'The value of `String.fromCodePoint.length` is `1`'
);

verifyNotEnumerable(String.fromCodePoint, 'length');
verifyNotWritable(String.fromCodePoint, 'length');
verifyConfigurable(String.fromCodePoint, 'length');

reportCompare(0, 0);