Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/annexB/built-ins/escape/empty-string.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-escape-string
5 es6id: B.2.1.1
6 description: Input is the empty string
7 info: |
8 1. Let string be ? ToString(string).
9 2. Let length be the number of code units in string.
10 3. Let R be the empty string.
11 4. Let k be 0.
12 5. Repeat, while k < length,
13 [...]
14 6. Return R.
15 ---*/
16
17 assert.sameValue(escape(''), '');