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

Object section incorrect on '2. toString' case #13

Closed
Constellation opened this issue Feb 12, 2011 · 1 comment
Closed

Object section incorrect on '2. toString' case #13

Constellation opened this issue Feb 12, 2011 · 1 comment

Comments

@Constellation
Copy link

in Objects section, http://bonsaiden.github.com/JavaScript-Garden/#objects
example 3,

2. toString(); // note the space

raises SyntaxError. according to the spec section 7.8.3 http://es5.github.com/#x7.8.3 , space is set to the left of dot.

2 .toString();  // note the space

thanks for your great document.

@ZhangYiJiang
Copy link
Collaborator

I think Ivo made a mistake here, since it's not just a ES5 problem, and it occurs on even current browsers. Will fix this, thanks.

32c9366

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

No branches or pull requests

2 participants