summaryrefslogtreecommitdiff
path: root/test/built-ins/String/fromCodePoint/length.js
blob: c2f8cc15eb0866b771a05215966f9b76eca6ea36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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]
---*/

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');