mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
String.prototype.trimEnd,trimStart: add feature (per new convention)
This commit is contained in:
parent
2d80b92cb8
commit
966dfb4cd0
@ -20,7 +20,7 @@ info: >
|
|||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype.trimEnd, "length", {
|
verifyProperty(String.prototype.trimEnd, "length", {
|
||||||
|
@ -17,7 +17,7 @@ info: >
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype.trimEnd, "name", {
|
verifyProperty(String.prototype.trimEnd, "name", {
|
||||||
|
@ -12,7 +12,7 @@ info: >
|
|||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
[[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype, "trimEnd", {
|
verifyProperty(String.prototype, "trimEnd", {
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
Result:
|
Result:
|
||||||
If argument is true, return "true".
|
If argument is true, return "true".
|
||||||
If argument is false, return "false".
|
If argument is false, return "false".
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd
|
var trimEnd = String.prototype.trimEnd
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
|
|
||||||
The definition of white space is the union of WhiteSpace and LineTerminator.
|
The definition of white space is the union of WhiteSpace and LineTerminator.
|
||||||
|
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd;
|
var trimEnd = String.prototype.trimEnd;
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-string.prototype.trimEnd
|
|||||||
description: The "this" value must be object-coercible
|
description: The "this" value must be object-coercible
|
||||||
info: |
|
info: |
|
||||||
1. Let O be ? RequireObjectCoercible(this value).
|
1. Let O be ? RequireObjectCoercible(this value).
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd;
|
var trimEnd = String.prototype.trimEnd;
|
||||||
|
@ -11,7 +11,7 @@ info: |
|
|||||||
ToString ( argument )
|
ToString ( argument )
|
||||||
Argument Type: Number
|
Argument Type: Number
|
||||||
Result: NumberToString(argument)
|
Result: NumberToString(argument)
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd
|
var trimEnd = String.prototype.trimEnd
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
...
|
...
|
||||||
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
e. If exoticToPrim is not undefined, then
|
e. If exoticToPrim is not undefined, then
|
||||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ info: |
|
|||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
iii. Throw a TypeError exception.
|
iii. Throw a TypeError exception.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -36,7 +36,7 @@ info: |
|
|||||||
...
|
...
|
||||||
5. For each name in methodNames in List order, do
|
5. For each name in methodNames in List order, do
|
||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -38,7 +38,7 @@ info: |
|
|||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
b. If IsCallable(method) is true, then
|
b. If IsCallable(method) is true, then
|
||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var toPrimitiveAccessed = 0;
|
var toPrimitiveAccessed = 0;
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ info: |
|
|||||||
...
|
...
|
||||||
5. For each name in methodNames in List order, do
|
5. For each name in methodNames in List order, do
|
||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -38,7 +38,7 @@ info: |
|
|||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
b. If IsCallable(method) is true, then
|
b. If IsCallable(method) is true, then
|
||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var toPrimitiveAccessed = 0;
|
var toPrimitiveAccessed = 0;
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ info: |
|
|||||||
ToString ( argument )
|
ToString ( argument )
|
||||||
Argument Type: Symbol
|
Argument Type: Symbol
|
||||||
Result: Throw a TypeError exception
|
Result: Throw a TypeError exception
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd;
|
var trimEnd = String.prototype.trimEnd;
|
||||||
|
@ -16,7 +16,7 @@ info: |
|
|||||||
“Zs”, code unit sequences are interpreted as UTF-16 encoded code point
|
“Zs”, code unit sequences are interpreted as UTF-16 encoded code point
|
||||||
sequences as specified in 6.1.4.
|
sequences as specified in 6.1.4.
|
||||||
|
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimEnd]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimEnd = String.prototype.trimEnd;
|
var trimEnd = String.prototype.trimEnd;
|
||||||
|
@ -20,7 +20,7 @@ info: >
|
|||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype.trimStart, "length", {
|
verifyProperty(String.prototype.trimStart, "length", {
|
||||||
|
@ -17,7 +17,7 @@ info: >
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype.trimStart, "name", {
|
verifyProperty(String.prototype.trimStart, "name", {
|
||||||
|
@ -12,7 +12,7 @@ info: >
|
|||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
[[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(String.prototype, "trimStart", {
|
verifyProperty(String.prototype, "trimStart", {
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
Result:
|
Result:
|
||||||
If argument is true, return "true".
|
If argument is true, return "true".
|
||||||
If argument is false, return "false".
|
If argument is false, return "false".
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart
|
var trimStart = String.prototype.trimStart
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
|
|
||||||
The definition of white space is the union of WhiteSpace and LineTerminator.
|
The definition of white space is the union of WhiteSpace and LineTerminator.
|
||||||
|
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart;
|
var trimStart = String.prototype.trimStart;
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-string.prototype.trimStart
|
|||||||
description: The "this" value must be object-coercible
|
description: The "this" value must be object-coercible
|
||||||
info: |
|
info: |
|
||||||
1. Let O be ? RequireObjectCoercible(this value).
|
1. Let O be ? RequireObjectCoercible(this value).
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart;
|
var trimStart = String.prototype.trimStart;
|
||||||
|
@ -11,7 +11,7 @@ info: |
|
|||||||
ToString ( argument )
|
ToString ( argument )
|
||||||
Argument Type: Number
|
Argument Type: Number
|
||||||
Result: NumberToString(argument)
|
Result: NumberToString(argument)
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart
|
var trimStart = String.prototype.trimStart
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
...
|
...
|
||||||
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
e. If exoticToPrim is not undefined, then
|
e. If exoticToPrim is not undefined, then
|
||||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ info: |
|
|||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
iii. Throw a TypeError exception.
|
iii. Throw a TypeError exception.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -36,7 +36,7 @@ info: |
|
|||||||
...
|
...
|
||||||
5. For each name in methodNames in List order, do
|
5. For each name in methodNames in List order, do
|
||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -38,7 +38,7 @@ info: |
|
|||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
b. If IsCallable(method) is true, then
|
b. If IsCallable(method) is true, then
|
||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var toPrimitiveAccessed = 0;
|
var toPrimitiveAccessed = 0;
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ info: |
|
|||||||
a. Let method be ? Get(O, name).
|
a. Let method be ? Get(O, name).
|
||||||
b. If IsCallable(method) is true, then
|
b. If IsCallable(method) is true, then
|
||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var thisVal = {
|
var thisVal = {
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
...
|
...
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var toPrimitiveAccessed = 0;
|
var toPrimitiveAccessed = 0;
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
i. Let result be ? Call(method, O).
|
i. Let result be ? Call(method, O).
|
||||||
ii. If Type(result) is not Object, return result.
|
ii. If Type(result) is not Object, return result.
|
||||||
6. Throw a TypeError exception.
|
6. Throw a TypeError exception.
|
||||||
features: [string-trimming, Symbol.toPrimitive]
|
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ info: |
|
|||||||
ToString ( argument )
|
ToString ( argument )
|
||||||
Argument Type: Symbol
|
Argument Type: Symbol
|
||||||
Result: Throw a TypeError exception
|
Result: Throw a TypeError exception
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart;
|
var trimStart = String.prototype.trimStart;
|
||||||
|
@ -16,7 +16,7 @@ info: |
|
|||||||
“Zs”, code unit sequences are interpreted as UTF-16 encoded code point
|
“Zs”, code unit sequences are interpreted as UTF-16 encoded code point
|
||||||
sequences as specified in 6.1.4.
|
sequences as specified in 6.1.4.
|
||||||
|
|
||||||
features: [string-trimming]
|
features: [string-trimming, String.prototype.trimStart]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var trimStart = String.prototype.trimStart;
|
var trimStart = String.prototype.trimStart;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user