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

Bind operator breaks standard #160

Closed
LinusU opened this issue Jun 16, 2015 · 2 comments
Closed

Bind operator breaks standard #160

LinusU opened this issue Jun 16, 2015 · 2 comments

Comments

@LinusU
Copy link
Member

LinusU commented Jun 16, 2015

Using the bind operator completely breaks standard since it sees it as an illegal token.

/tmp/bind-operator/example.js:5:20: Unexpected token :

Source:

function ucFirst () {
  return this[0].toUpperCase() + this.substring(1)
}

console.log("linus"::ucFirst())

The bind operator is a strawman proposal for ES7, read more here: ForbesLindesay/bind-operator, Strawman spec.

@julien-f
Copy link

standard support custom parsers such as babel-eslint, see this comment!

@LinusU
Copy link
Member Author

LinusU commented Jun 16, 2015

This is awesome! There is no mentioning of it in the readme thought, and as far as I can tell you can't use it from the command line.

Anyhow, that is two different issues, thanks for the help!

@LinusU LinusU closed this as completed Jun 16, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants