Skip to content

Fix #8338: add signatures to RegExp constructor accepting RegExp#8362

Merged
mhegazy merged 1 commit into
masterfrom
Fix8338
May 2, 2016
Merged

Fix #8338: add signatures to RegExp constructor accepting RegExp#8362
mhegazy merged 1 commit into
masterfrom
Fix8338

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Apr 28, 2016

The ES5 spec allows for calling it with one argument that is a regexp, see https://people.mozilla.org/~jorendorff/es5.html#sec-15.10.4.1

The ES6 spec allows for two, see http://www.ecma-international.org/ecma-262/6.0/#sec-regexp-pattern-flags

@mhegazy
Copy link
Copy Markdown
Contributor Author

mhegazy commented Apr 28, 2016

also removing some trailing whitespaces

@yuit
Copy link
Copy Markdown
Contributor

yuit commented May 2, 2016

lgtm

@mhegazy mhegazy merged commit 4d53a21 into master May 2, 2016
@mhegazy mhegazy deleted the Fix8338 branch May 2, 2016 21:38
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants