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

Support for Primises? #276

Closed
rozek opened this issue Aug 9, 2024 · 1 comment
Closed

Support for Primises? #276

rozek opened this issue Aug 9, 2024 · 1 comment

Comments

@rozek
Copy link

rozek commented Aug 9, 2024

Are there plans to support "Promises" (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) in the JavaScript Interpreter?

I know that one can wrap asynchronous functions such that there is no need for async/await in an JSI script (which is BRILLIANT!) but sometimes it seems useful to let a function run in the background while the foreground continues working as usual (e.g. handling events)

@NeilFraser
Copy link
Owner

Promises are a feature of ES6: https://www.geeksforgeeks.org/introduction-to-es6/#promises

JS-Interpreter is ES5 only: #186

@NeilFraser NeilFraser closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2024
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

2 participants