Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/annexB/built-ins/escape/unmodified.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: Do not escape a specific set of characters
7 info: |
8 [...]
9 5. Repeat, while k < length,
10 a. Let char be the code unit (represented as a 16-bit unsigned integer)
11 at index k within string.
12 b. If char is one of the code units in
13 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./",
14 then
15 i. Let S be a String containing the single code unit char.
16 [...]
17 ---*/
18
19 var passthrough = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./';
20
21 assert.sameValue(escape(passthrough), passthrough);