Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/String/fromCodePoint/arguments-is-empty.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.2
5 description: >
6 The the arguments list is empty, an empty string is returned.
7 info: |
8 String.fromCodePoint ( ...codePoints )
9
10 1. Let codePoints be a List containing the arguments passed to this function.
11 ...
12 5. Repeat while nextIndex < length
13 ...
14 f. Append the elements of the UTF16Encoding (10.1.1) of nextCP to the end of
15 elements.
16 g. Let nextIndex be nextIndex + 1.
17 6. Return the String value whose elements are, in order, the elements in the
18 List elements. If length is 0, the empty string is returned.
19
20 ---*/
21
22 assert.sameValue(String.fromCodePoint(), '');