empty-string.js (507B)
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(''), ''); 18 19 reportCompare(0, 0);