mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
Add missing Symbol.replace feature flags
This commit is contained in:
parent
f52f233934
commit
a9099c1f20
@ -17,7 +17,7 @@ info: >
|
|||||||
4. ReturnIfAbrupt(exec).
|
4. ReturnIfAbrupt(exec).
|
||||||
5. If IsCallable(exec) is true, then
|
5. If IsCallable(exec) is true, then
|
||||||
a. Let result be Call(exec, R, «S»).
|
a. Let result be Call(exec, R, «S»).
|
||||||
features: [Symbol.match]
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var r = /./;
|
var r = /./;
|
||||||
|
@ -16,7 +16,7 @@ info: >
|
|||||||
[...]
|
[...]
|
||||||
3. Let exec be Get(R, "exec").
|
3. Let exec be Get(R, "exec").
|
||||||
4. ReturnIfAbrupt(exec).
|
4. ReturnIfAbrupt(exec).
|
||||||
features: [Symbol.match]
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var r = { global: true };
|
var r = { global: true };
|
||||||
|
@ -16,6 +16,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: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(RegExp.prototype[Symbol.replace].length, 2);
|
assert.sameValue(RegExp.prototype[Symbol.replace].length, 2);
|
||||||
|
@ -14,6 +14,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: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(RegExp.prototype[Symbol.replace].name, '[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,
|
B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
[[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyNotEnumerable(RegExp.prototype, Symbol.replace);
|
verifyNotEnumerable(RegExp.prototype, Symbol.replace);
|
||||||
|
@ -14,7 +14,7 @@ info: >
|
|||||||
16. Repeat, for each result in results,
|
16. Repeat, for each result in results,
|
||||||
a. Let nCaptures be ToLength(Get(result, "length")).
|
a. Let nCaptures be ToLength(Get(result, "length")).
|
||||||
b. ReturnIfAbrupt(nCaptures).
|
b. ReturnIfAbrupt(nCaptures).
|
||||||
features: [Symbol.match]
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var r = /./;
|
var r = /./;
|
||||||
|
@ -13,7 +13,7 @@ info: >
|
|||||||
16. Repeat, for each result in results,
|
16. Repeat, for each result in results,
|
||||||
a. Let nCaptures be ToLength(Get(result, "length")).
|
a. Let nCaptures be ToLength(Get(result, "length")).
|
||||||
b. ReturnIfAbrupt(nCaptures).
|
b. ReturnIfAbrupt(nCaptures).
|
||||||
features: [Symbol.match]
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var r = /./;
|
var r = /./;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user