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

Add tern.js support #97

Closed
gfwilliams opened this issue Jul 11, 2014 · 1 comment
Closed

Add tern.js support #97

gfwilliams opened this issue Jul 11, 2014 · 1 comment

Comments

@gfwilliams
Copy link
Member

tern.js knows all kinds of fancy stuff about JavaScript, and it even works with CodeMirror: http://ternjs.net/doc/demo.html

There's a minor issue at the moment to do with its (or acorn.js's) use of eval/new Function. It looks like this can be fixed with a sandbox though: acornjs/acorn#90

Also, tern uses a json file that describes the built-in JavaScript functions and what they return: http://ternjs.net/defs/ecma5.json

It should be trivial to automatically append Espruino's built-in functions with at least basic type information.

@gfwilliams
Copy link
Member Author

done

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

1 participant