Debian Codegraph @

js/src/tests/test262/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 result be the empty String.
11 2. For each element next of codePoints, do
12 ...
13 3. Assert: If codePoints is empty, then result is the empty String.
14 4. Return result.
15 features: [String.fromCodePoint]
16 ---*/
17
18 assert.sameValue(String.fromCodePoint(), '');
19
20 reportCompare(0, 0);