mirror of https://github.com/tc39/test262.git
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,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype.trimEnd, "length", {
|
||||
|
|
|
@ -17,7 +17,7 @@ info: >
|
|||
object, if it exists, has the attributes { [[Writable]]: false,
|
||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype.trimEnd, "name", {
|
||||
|
|
|
@ -12,7 +12,7 @@ info: >
|
|||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||
[[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype, "trimEnd", {
|
||||
|
|
|
@ -13,7 +13,7 @@ info: |
|
|||
Result:
|
||||
If argument is true, return "true".
|
||||
If argument is false, return "false".
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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.
|
||||
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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
|
||||
info: |
|
||||
1. Let O be ? RequireObjectCoercible(this value).
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
var trimEnd = String.prototype.trimEnd;
|
||||
|
|
|
@ -11,7 +11,7 @@ info: |
|
|||
ToString ( argument )
|
||||
Argument Type: Number
|
||||
Result: NumberToString(argument)
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
var trimEnd = String.prototype.trimEnd
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
6. Throw a TypeError exception.
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
|||
...
|
||||
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
e. If exoticToPrim is not undefined, then
|
||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||
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.
|
||||
iii. Throw a TypeError exception.
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -36,7 +36,7 @@ info: |
|
|||
...
|
||||
5. For each name in methodNames in List order, do
|
||||
a. Let method be ? Get(O, name).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -38,7 +38,7 @@ info: |
|
|||
a. Let method be ? Get(O, name).
|
||||
b. If IsCallable(method) is true, then
|
||||
i. Let result be ? Call(method, O).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
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;
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
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
|
||||
a. Let method be ? Get(O, name).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -38,7 +38,7 @@ info: |
|
|||
a. Let method be ? Get(O, name).
|
||||
b. If IsCallable(method) is true, then
|
||||
i. Let result be ? Call(method, O).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimEnd, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
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;
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
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 )
|
||||
Argument Type: Symbol
|
||||
Result: Throw a TypeError exception
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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
|
||||
sequences as specified in 6.1.4.
|
||||
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimEnd]
|
||||
---*/
|
||||
|
||||
var trimEnd = String.prototype.trimEnd;
|
||||
|
|
|
@ -20,7 +20,7 @@ info: >
|
|||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype.trimStart, "length", {
|
||||
|
|
|
@ -17,7 +17,7 @@ info: >
|
|||
object, if it exists, has the attributes { [[Writable]]: false,
|
||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype.trimStart, "name", {
|
||||
|
|
|
@ -12,7 +12,7 @@ info: >
|
|||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||
[[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js]
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
verifyProperty(String.prototype, "trimStart", {
|
||||
|
|
|
@ -13,7 +13,7 @@ info: |
|
|||
Result:
|
||||
If argument is true, return "true".
|
||||
If argument is false, return "false".
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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.
|
||||
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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
|
||||
info: |
|
||||
1. Let O be ? RequireObjectCoercible(this value).
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
var trimStart = String.prototype.trimStart;
|
||||
|
|
|
@ -11,7 +11,7 @@ info: |
|
|||
ToString ( argument )
|
||||
Argument Type: Number
|
||||
Result: NumberToString(argument)
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
var trimStart = String.prototype.trimStart
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
6. Throw a TypeError exception.
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
|||
...
|
||||
d. Let exoticToPrim be ? GetMethod(input, @@toPrimitive).
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
e. If exoticToPrim is not undefined, then
|
||||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
i. Let result be ? Call(exoticToPrim, input, « hint »).
|
||||
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.
|
||||
iii. Throw a TypeError exception.
|
||||
...
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -36,7 +36,7 @@ info: |
|
|||
...
|
||||
5. For each name in methodNames in List order, do
|
||||
a. Let method be ? Get(O, name).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -38,7 +38,7 @@ info: |
|
|||
a. Let method be ? Get(O, name).
|
||||
b. If IsCallable(method) is true, then
|
||||
i. Let result be ? Call(method, O).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
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;
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
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).
|
||||
b. If IsCallable(method) is true, then
|
||||
i. Let result be ? Call(method, O).
|
||||
features: [string-trimming, Symbol.toPrimitive]
|
||||
features: [string-trimming, String.prototype.trimStart, Symbol.toPrimitive]
|
||||
---*/
|
||||
|
||||
var thisVal = {
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
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;
|
||||
|
|
|
@ -40,7 +40,7 @@ info: |
|
|||
i. Let result be ? Call(method, O).
|
||||
ii. If Type(result) is not Object, return result.
|
||||
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 )
|
||||
Argument Type: Symbol
|
||||
Result: Throw a TypeError exception
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, 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
|
||||
sequences as specified in 6.1.4.
|
||||
|
||||
features: [string-trimming]
|
||||
features: [string-trimming, String.prototype.trimStart]
|
||||
---*/
|
||||
|
||||
var trimStart = String.prototype.trimStart;
|
||||
|
|
Loading…
Reference in New Issue