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

Parse error: "\0" in "strict" mode #3

Closed
mishoo opened this issue Oct 3, 2012 · 0 comments
Closed

Parse error: "\0" in "strict" mode #3

mishoo opened this issue Oct 3, 2012 · 0 comments

Comments

@mishoo
Copy link
Contributor

mishoo commented Oct 3, 2012

In strict mode it doesn't like "\0":

"use strict";
var x = "\0";

errors out with:

/.../acorn/acorn.js:158
    throw new SyntaxError(message);
          ^
SyntaxError: Octal literal in strict mode (2:9)
@marijnh marijnh closed this as completed in 0590d12 Oct 3, 2012
kossnocorp pushed a commit to kossnocorp/acorn that referenced this issue Jan 16, 2015
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

No branches or pull requests

2 participants