Fix RegExp.prototype.compile error case
If the RegExp doesn't parse, then ES2015 specifies that RegExp.prototype.compile does not mutate it. This patch changes our RegExp implementation to follow that logic. R=yangguo Review-Url: https://codereview.chromium.org/1972093003 Cr-Commit-Position: refs/heads/master@{#36268}
Showing
Please
register
or
sign in
to comment