mirror of https://github.com/tc39/test262.git
Add missing Symbol.replace feature flags
This commit is contained in:
parent
f52f233934
commit
a9099c1f20
|
@ -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 = /./;
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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]');
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 = /./;
|
||||
|
|
|
@ -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 = /./;
|
||||
|
|
Loading…
Reference in New Issue