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

Why is "$" in the core prelude? #40

Closed
sophiebits opened this issue Nov 19, 2014 · 2 comments
Closed

Why is "$" in the core prelude? #40

sophiebits opened this issue Nov 19, 2014 · 2 comments
Labels

Comments

@sophiebits
Copy link
Contributor

lib/core.js contains:

declare var $: any;

Why?

declare var $: any;

@geekingfrog
Copy link

My guess is that modern browsers have this feature which is an alias for document.querySelector.

@sophiebits
Copy link
Contributor Author

Though various JS consoles (like Chrome's) support it, it's not usually part of the global object.

@mroch mroch closed this as completed in 1063e98 Jun 12, 2015
jeffmo pushed a commit to jeffmo/flow that referenced this issue Jul 31, 2015
* Added info on Esprima-FB with corresponding links to spec.
* Updated reference links to AST and tests pages.
* Added short explanation on versioning based on @zpao's comment: https://github.com/facebook/esprima/issues/35#issuecomment-52277629

Closes facebook#40.
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

3 participants