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

Question: Scripting runtime capabilities? #3233

Closed
yanchith opened this issue Jan 10, 2022 · 2 comments
Closed

Question: Scripting runtime capabilities? #3233

yanchith opened this issue Jan 10, 2022 · 2 comments
Assignees
Labels
documentation Issue related to the Tiled Manual.

Comments

@yanchith
Copy link

Hello :)

I imagine Tiled uses V8 for JS scripting, but what is less clear is the exact capabilities of the runtime.

More precisely:

  • What is the version of the runtime?
  • What JS language spec is (fully or almost fully) implemented?
  • What parts of the "standard" library are available?

Currently, I had to dial the "target" and "lib" in tsconfig.json back to es5 to experience less type errors when things are not available. I am not advocating updating to newer versions (I personally think JS was pretty ok 10 years ago 🙂), but maybe having this documented would make sense, ideally here https://www.mapeditor.org/docs/scripting/index.html and here https://doc.mapeditor.org/en/stable/reference/scripting/

@bjorn
Copy link
Member

bjorn commented Jan 11, 2022

What is the version of the runtime? What JS language spec is (fully or almost fully) implemented?

Hmm, I've tried to figure this out, but it doesn't appear to be clearly documented. The JavaScript Host Environment page at least says that "The QML runtime implements the 7th edition of the standard."

What parts of the "standard" library are available?

See the List of JavaScript Objects and Functions

maybe having this documented would make sense, ideally here https://www.mapeditor.org/docs/scripting/index.html and here https://doc.mapeditor.org/en/stable/reference/scripting/

Yeah, it makes sense to at least link to the above mentioned pages.

@bjorn bjorn added the documentation Issue related to the Tiled Manual. label Jan 11, 2022
@yanchith
Copy link
Author

Oh, thanks for the quick answer! Yeah, just listing these in the docs would be great.

@bjorn bjorn self-assigned this Jan 19, 2022
@bjorn bjorn closed this as completed in 0c7b83d Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issue related to the Tiled Manual.
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants