Skip to content
Snippets Groups Projects
Commit 966dfb4c authored by Rick Waldron's avatar Rick Waldron
Browse files

String.prototype.trimEnd,trimStart: add feature (per new convention)

parent 2d80b92c
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
...@@ -20,7 +20,7 @@ info: > ...@@ -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: > ...@@ -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: > ...@@ -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: | ...@@ -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: | ...@@ -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 ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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]
---*/ ---*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment