Skip to content
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

Fixed RegExp.toString() throws a NullReferenceException if not called… #640

Merged
merged 2 commits into from Jul 26, 2019

Conversation

miroslav22
Copy link
Contributor

… with a real RegExp instance

Bit of an obscure one this! RegExp.prototype.toString() throws a null reference exception if not called with a real RegExp instance.

This pull request brings the method behaviour in line with the v8 engine.

A polyfill library I'm trying to use tests the RegExp prototype this way and hence errors.

@sebastienros sebastienros merged commit 8dbd95a into sebastienros:dev Jul 26, 2019
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.

None yet

3 participants