-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests for String.prototype.matchAll #1500
Conversation
`String.prototype.matchAll`: Add basic tests.
`RegExp.prototype[Symbol.matchAll]`: Add basic tests.
…matchall], and %RegExpStringIteratorPrototype% Tests were updated and assuming tc39/proposal-string-matchall#33 will be merged.
ping @rwaldron @leobalter :-) |
Ready to go then? |
Yes, i think so! There’s still tc39/proposal-string-matchall#34, but I’ll file any update PRs here if there’s changes as a result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thorough!
# String.prototype.matchAll | ||
# https://github.com/tc39/proposal-string-matchall | ||
String.prototype.matchAll | ||
Symbol.matchAll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This property has the attributes { [[Writable]]: false, [[Enumerable]]: | ||
false, [[Configurable]]: false }. | ||
includes: [propertyHelper.js] | ||
features: [Symbol.match] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Symbol.matchAll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsathya Thanks, this is already being corrected with this PR (that is updating to the latest spec changes): https://github.com/tc39/test262/pull/1587/files#diff-dcc8c9cf15ec70a98b42af64c99e751d
String.prototype.matchAll
is at stage 3.Here's the tests for it; with help from @peterwmwong / ljharb#1.
Please do not merge this yet; there's still a few unresolved issues on the proposal repo and I'd rather update the PR in-place if there ends up being changes :-)