Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/String/raw/length.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 21.1.2.4
5 description: >
6 String.raw.length value and property descriptor
7 info: |
8 String.raw ( template , ...substitutions )
9
10 The length property of the raw function is 1.
11 includes: [propertyHelper.js]
12 ---*/
13
14 assert.sameValue(
15 String.raw.length, 1,
16 'The value of `String.raw.length` is `1`'
17 );
18
19 verifyNotEnumerable(String.raw, 'length');
20 verifyNotWritable(String.raw, 'length');
21 verifyConfigurable(String.raw, 'length');