browser.js |
|
0 |
length.js |
---
es6id: 21.1.2.4
description: >
String.raw.length value and property descriptor
info: |
String.raw ( template , ...substitutions )
The length property of the raw function is 1.
includes: [propertyHelper.js]
--- |
502 |
name.js |
---
es6id: 21.1.2.4
description: >
String.raw.name value and property descriptor
info: |
String.raw ( template , ...substitutions )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
497 |
nextkey-is-symbol-throws.js |
---
es6id: 21.1.2.4
description: >
Throws a TypeError if nextKey is Symbol
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
...
features: [Symbol]
--- |
672 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
String.raw does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, arrow-function]
--- |
875 |
raw.js |
---
es6id: 21.1.2.4
description: >
String.raw property descriptor
info: |
String.raw ( template , ...substitutions )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
460 |
return-empty-string-from-empty-array-length.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw an empty Array
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
556 |
return-empty-string-if-length-is-negative-infinity.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is -Infinity
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
586 |
return-empty-string-if-length-is-not-defined.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length isn't defined.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
563 |
return-empty-string-if-length-is-undefined.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length isn't defined.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
588 |
return-empty-string-if-length-is-zero-boolean.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is false
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
578 |
return-empty-string-if-length-is-zero-NaN.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is NaN
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
574 |
return-empty-string-if-length-is-zero-null.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is null
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
576 |
return-empty-string-if-length-is-zero-or-less-number.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is <= 0
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
1018 |
return-empty-string-if-length-is-zero-or-less-string.js |
---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is <= 0
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
--- |
890 |
return-the-string-value-from-template.js |
---
es6id: 21.1.2.4
description: >
Returns the string value.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
...
--- |
893 |
return-the-string-value.js |
---
es6id: 21.1.2.4
description: >
Returns the string value without substitutions arguments and limited to the
given length.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
...
--- |
1104 |
returns-abrupt-from-next-key-toString.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt from nextKey.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
...
--- |
711 |
returns-abrupt-from-next-key.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt from nextKey.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
...
--- |
943 |
returns-abrupt-from-substitution-symbol.js |
---
es6id: 21.1.2.4
description: >
Returns the abrupt from ToString(substitutions[nextIndex]) using a Symbol
value.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
f. If nextIndex < numberOfSubstitutions, let next be substitutions[nextIndex].
g. Else, let next be the empty String.
h. Let nextSub be ToString(next).
i. ReturnIfAbrupt(nextSub).
j. Append in order the code unit elements of nextSub to the end of stringElements.
k. Let nextIndex be nextIndex + 1.
features: [Symbol]
--- |
1435 |
returns-abrupt-from-substitution.js |
---
es6id: 21.1.2.4
description: >
Returns the abrupt from ToString(substitutions[nextIndex]).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
f. If nextIndex < numberOfSubstitutions, let next be substitutions[nextIndex].
g. Else, let next be the empty String.
h. Let nextSub be ToString(next).
i. ReturnIfAbrupt(nextSub).
j. Append in order the code unit elements of nextSub to the end of stringElements.
k. Let nextIndex be nextIndex + 1.
--- |
1459 |
shell.js |
|
0 |
special-characters.js |
---
es6id: 21.1.2.4
description: >
When used as a tag function of a tagged template, `String.raw` should
return the "raw" representation of the template.
--- |
549 |
substitutions-are-appended-on-same-index.js |
---
es6id: 21.1.2.4
description: >
Returns the string value appending the substitutions on the same index order.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
f. If nextIndex < numberOfSubstitutions, let next be substitutions[nextIndex].
g. Else, let next be the empty String.
h. Let nextSub be ToString(next).
i. ReturnIfAbrupt(nextSub).
j. Append in order the code unit elements of nextSub to the end of stringElements.
k. Let nextIndex be nextIndex + 1.
--- |
1367 |
substitutions-are-limited-to-template-raw-length.js |
---
es6id: 21.1.2.4
description: >
Limit appended substitutions arguments to template.raw.length - 1.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
...
--- |
1059 |
template-length-is-symbol-throws.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt completion from ToLength(template.raw.length).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
1. Let substitutions be a List consisting of all of the arguments passed to
this function, starting with the second argument. If fewer than two arguments
were passed, the List is empty.
2. Let numberOfSubstitutions be the number of elements in substitutions.
3. Let cooked be ToObject(template).
4. ReturnIfAbrupt(cooked).
5. Let raw be ToObject(Get(cooked, "raw")).
6. ReturnIfAbrupt(raw).
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
features: [Symbol]
--- |
957 |
template-length-throws.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt completion from ToObject(template.raw.length).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
1. Let substitutions be a List consisting of all of the arguments passed to
this function, starting with the second argument. If fewer than two arguments
were passed, the List is empty.
2. Let numberOfSubstitutions be the number of elements in substitutions.
3. Let cooked be ToObject(template).
4. ReturnIfAbrupt(cooked).
5. Let raw be ToObject(Get(cooked, "raw")).
6. ReturnIfAbrupt(raw).
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
--- |
1025 |
template-not-object-throws.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt completion from ToObject(template).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
1. Let substitutions be a List consisting of all of the arguments passed to
this function, starting with the second argument. If fewer than two arguments
were passed, the List is empty.
2. Let numberOfSubstitutions be the number of elements in substitutions.
3. Let cooked be ToObject(template).
4. ReturnIfAbrupt(cooked).
--- |
785 |
template-raw-not-object-throws.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt completion from ToObject(template.raw).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
1. Let substitutions be a List consisting of all of the arguments passed to
this function, starting with the second argument. If fewer than two arguments
were passed, the List is empty.
2. Let numberOfSubstitutions be the number of elements in substitutions.
3. Let cooked be ToObject(template).
4. ReturnIfAbrupt(cooked).
5. Let raw be ToObject(Get(cooked, "raw")).
6. ReturnIfAbrupt(raw).
--- |
891 |
template-raw-throws.js |
---
es6id: 21.1.2.4
description: >
Returns abrupt completion from ToObject(template.raw).
info: |
21.1.2.4 String.raw ( template , ...substitutions )
1. Let substitutions be a List consisting of all of the arguments passed to
this function, starting with the second argument. If fewer than two arguments
were passed, the List is empty.
2. Let numberOfSubstitutions be the number of elements in substitutions.
3. Let cooked be ToObject(template).
4. ReturnIfAbrupt(cooked).
5. Let raw be ToObject(Get(cooked, "raw")).
6. ReturnIfAbrupt(raw).
--- |
904 |
template-substitutions-are-appended-on-same-index.js |
---
es6id: 21.1.2.4
description: >
Returns the string value appending from the same index order using String.raw
as a tag function.
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
10. Let stringElements be a new List.
11. Let nextIndex be 0.
12. Repeat
a. Let nextKey be ToString(nextIndex).
b. Let nextSeg be ToString(Get(raw, nextKey)).
c. ReturnIfAbrupt(nextSeg).
d. Append in order the code unit elements of nextSeg to the end of
stringElements.
e. If nextIndex + 1 = literalSegments, then
i. Return the String value whose code units are, in order, the elements in
the List stringElements. If stringElements has no elements, the empty
string is returned.
f. If nextIndex < numberOfSubstitutions, let next be substitutions[nextIndex].
g. Else, let next be the empty String.
h. Let nextSub be ToString(next).
i. ReturnIfAbrupt(nextSub).
j. Append in order the code unit elements of nextSub to the end of stringElements.
k. Let nextIndex be nextIndex + 1.
--- |
1275 |
zero-literal-segments.js |
---
es6id: 21.1.2.4
description: >
If literalSegments ≤ 0, return the empty string.
--- |
295 |