| empty-string.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Input is the empty string
info: |
1. Let string be ? ToString(string).
2. Let length be the number of code units in string.
3. Let R be the empty string.
4. Let k be 0.
5. Repeat, while k < length,
[...]
6. Return R.
--- |
485 |
- |
| escape-above-astral.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Escaping of code units above 255 from string with extended Unicode escape sequence
info: |
[...]
5. Repeat, while k < length,
a. Let char be the code unit (represented as a 16-bit unsigned integer)
at index k within string.
[...]
c. Else if char ≥ 256, then
i. Let S be a String containing six code units "%uwxyz" where wxyz
are the code units of the four uppercase hexadecimal digits
encoding the value of char.
[...]
--- |
832 |
- |
| escape-above.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Escaping of code units above 255
info: |
[...]
5. Repeat, while k < length,
a. Let char be the code unit (represented as a 16-bit unsigned integer)
at index k within string.
[...]
c. Else if char ≥ 256, then
i. Let S be a String containing six code units "%uwxyz" where wxyz
are the code units of the four uppercase hexadecimal digits
encoding the value of char.
[...]
--- |
954 |
- |
| escape-below.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Escaping of code units below 255
info: |
[...]
5. Repeat, while k < length,
a. Let char be the code unit (represented as a 16-bit unsigned integer)
at index k within string.
[...]
d. Else char < 256,
i. Let S be a String containing three code units "%xy" where xy are
the code units of two uppercase hexadecimal digits encoding the
value of char.
[...]
--- |
1417 |
- |
| length.js |
---
es6id: B.2.1.1
description: >
escape.length is 1.
info: |
escape (string)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form “...name”
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
1009 |
- |
| name.js |
---
es6id: B.2.1.1
description: >
escape.name is "escape".
info: |
escape (string)
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
774 |
- |
| prop-desc.js |
---
es5id: B.2.1
description: >
Object.getOwnPropertyDescriptor returns data desc for functions on
built-ins (Global.escape)
includes: [propertyHelper.js]
--- |
509 |
- |
| to-string-err-symbol.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Abrupt completion from `ToString` operation (Symbol value)
info: |
1. Let string be ? ToString(string).
features: [Symbol]
--- |
406 |
- |
| to-string-err.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Abrupt completion from `ToString` operation
info: |
1. Let string be ? ToString(string).
--- |
431 |
- |
| to-string-observe.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Observable operations from string coercion
info: |
1. Let string be ? ToString(string).
--- |
820 |
- |
| unmodified.js |
---
esid: sec-escape-string
es6id: B.2.1.1
description: Do not escape a specific set of characters
info: |
[...]
5. Repeat, while k < length,
a. Let char be the code unit (represented as a 16-bit unsigned integer)
at index k within string.
b. If char is one of the code units in
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./",
then
i. Let S be a String containing the single code unit char.
[...]
--- |
782 |
- |