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

Allow ?? on JavaScript on VTT #2450

Open
96LawDawg opened this issue Jan 17, 2025 · 1 comment
Open

Allow ?? on JavaScript on VTT #2450

96LawDawg opened this issue Jan 17, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@96LawDawg
Copy link
Collaborator

Currently, the nullish coalescing operator ?? is not supported in JavaScript on the VTT platform. We can use the logical OR operator || to achieve something similar if you add additional checks.

To fix this, the JavaScript engine version needs to be updated to support ECMAScript 2020 features. According to ChatGPT. Whatever that means.

@96LawDawg 96LawDawg added the enhancement New feature or request label Jan 17, 2025
@RaphaelAlvez
Copy link
Collaborator

I suggest this should go one step further and add a equivalent operator for when a property is default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants