Skip to content

Commit

Permalink
String.prototype.trimEnd,trimStart: add feature (per new convention)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jan 25, 2018
1 parent 2d80b92 commit 966dfb4
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimEnd/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimEnd/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimEnd/prop-desc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimStart/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimStart/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion test/built-ins/String/prototype/trimStart/prop-desc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
---*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 966dfb4

Please sign in to comment.