Skip to content

Conversation

mathiasbynens
Copy link
Owner

1. Return ? RegExpExec(_rx_, _S_).
1. Else,
1. Assert: _global_ is *true*.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is no longer there upstream: https://tc39.es/ecma262/#sec-regexp.prototype-@@match

1. Perform ? Set(_rx_, *"lastIndex"*, *+0*<sub>𝔽</sub>, *true*).
1. If _flags_ contains *"u"* or _flags_ contains *"v"*, let _fullUnicode_ be *true*. Otherwise, let _fullUnicode_ be *false*.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decoupling assignment of fullUnicode to no longer be conditioned on global being true reads so much better!

Copy link
Collaborator

@markusicu markusicu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm tnx

@mathiasbynens
Copy link
Owner Author

I see the CI error, but somehow npm run format is a no-op for me locally. I'll go ahead and merge this, and we can deal with the formatting separately.

@mathiasbynens mathiasbynens merged commit f44c4b2 into regexp-v-flag Apr 14, 2023
@mathiasbynens mathiasbynens deleted the follow-2791 branch April 14, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants