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

Syntax error #32

Closed
71104 opened this issue Dec 28, 2014 · 2 comments
Closed

Syntax error #32

71104 opened this issue Dec 28, 2014 · 2 comments
Assignees
Labels

Comments

@71104
Copy link
Owner

71104 commented Dec 28, 2014

The following valid code produces a syntax error:

console.dir []
@71104 71104 added the bug label Dec 28, 2014
@71104 71104 self-assigned this Dec 28, 2014
@71104
Copy link
Owner Author

71104 commented Dec 28, 2014

Not valid actually, it is interpreted as a subscript expression without the index expression.

This notation fixes it:

console.dir ([])

@71104 71104 closed this as completed Dec 28, 2014
@71104
Copy link
Owner Author

71104 commented Dec 31, 2014

Reopened as #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant