Add missing Symbol.replace feature flags

This commit is contained in:
Leo Balter 2017-09-07 18:27:29 -04:00 committed by Rick Waldron
parent f52f233934
commit a9099c1f20
7 changed files with 7 additions and 4 deletions

View File

@ -17,7 +17,7 @@ info: >
4. ReturnIfAbrupt(exec).
5. If IsCallable(exec) is true, then
a. Let result be Call(exec, R, «S»).
features: [Symbol.match]
features: [Symbol.replace]
---*/
var r = /./;

View File

@ -16,7 +16,7 @@ info: >
[...]
3. Let exec be Get(R, "exec").
4. ReturnIfAbrupt(exec).
features: [Symbol.match]
features: [Symbol.replace]
---*/
var r = { global: true };

View File

@ -16,6 +16,7 @@ info: >
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.replace]
---*/
assert.sameValue(RegExp.prototype[Symbol.replace].length, 2);

View File

@ -14,6 +14,7 @@ info: >
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.replace]
---*/
assert.sameValue(RegExp.prototype[Symbol.replace].name, '[Symbol.replace]');

View File

@ -11,6 +11,7 @@ info: >
B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
features: [Symbol.replace]
---*/
verifyNotEnumerable(RegExp.prototype, Symbol.replace);

View File

@ -14,7 +14,7 @@ info: >
16. Repeat, for each result in results,
a. Let nCaptures be ToLength(Get(result, "length")).
b. ReturnIfAbrupt(nCaptures).
features: [Symbol.match]
features: [Symbol.replace]
---*/
var r = /./;

View File

@ -13,7 +13,7 @@ info: >
16. Repeat, for each result in results,
a. Let nCaptures be ToLength(Get(result, "length")).
b. ReturnIfAbrupt(nCaptures).
features: [Symbol.match]
features: [Symbol.replace]
---*/
var r = /./;