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

Access: support negative numbers #10487

Merged
merged 1 commit into from Jul 18, 2017
Merged

Conversation

dvoytenko
Copy link
Contributor

Closes #10461.

/cc @andytuba

@@ -278,5 +286,8 @@ describe('evaluateAccessExpr', () => {
expect(() => {
evaluateAccessExpr('num-a = 10', {'num-a': 10});
}).to.throw();
expect(() => {
evaluateAccessExpr('num-1 = 10', {'num-1': 10});
Copy link
Contributor

Choose a reason for hiding this comment

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

We allow - in an identifier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't - the test is for failure. But I wanted have a fail-test here anyway to make sure to not break in the future.

@dvoytenko dvoytenko merged commit 4cb2a24 into ampproject:master Jul 18, 2017
@dvoytenko dvoytenko deleted the access83 branch July 18, 2017 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants