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

New: Add u and y regex flags (refs #10) #11

Merged
merged 1 commit into from
Dec 16, 2014
Merged

New: Add u and y regex flags (refs #10) #11

merged 1 commit into from
Dec 16, 2014

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Dec 13, 2014

Looking for some feedback.

The tests are failing because I had to add the missing regex property to both AST nodes and tokens when they represent a regular expression. This is because value is unreliable given that Node.js doesn't support either flag, meaning we can't create a new RegExp to assign to value. The regex property is already in Esprima Harmony, I just ported it over.

The failing tests are those of the third-party JS libraries that Esprima uses to test AST output. I haven't had the time to convert those as they are massive.

Also, I found a bug where tokenize() wasn't respecting the ecmascript setting. That's fixed in this commit.

@nzakas nzakas force-pushed the regexflags branch 2 times, most recently from 4561ab9 to b63df3b Compare December 14, 2014 00:31
@nzakas
Copy link
Member Author

nzakas commented Dec 14, 2014

Okay, finally got all the tests working. Definitely need to pull apart the test system, it's quite circuitous and hard to figure out what is causing certain things to go wrong.

nzakas added a commit that referenced this pull request Dec 16, 2014
New: Add u and y regex flags (refs #10)
@nzakas nzakas merged commit f38049f into master Dec 16, 2014
@nzakas nzakas deleted the regexflags branch December 16, 2014 02:22
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.

1 participant