Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

JS Runtime Requirements #1

Open
2 of 6 tasks
mitsuhiko opened this issue Dec 13, 2022 · 1 comment
Open
2 of 6 tasks

JS Runtime Requirements #1

mitsuhiko opened this issue Dec 13, 2022 · 1 comment

Comments

@mitsuhiko
Copy link
Member

mitsuhiko commented Dec 13, 2022

At the moment the quickjs runtime comes up pretty empty. That means even basics such as setTimeout are missing. This is because we are not compiling in quickjs-libc.c which unfortunately does not actually work in a WASM environment at the moment. It's probably also a better idea to actually set up a tokio current thread runtime or similar and have that be hooked up with the engine.

The following APIs should be provided:

  • Promise
  • setTimeout
  • setImmediate
  • clearTimeout
  • console
  • JSON
@mitsuhiko
Copy link
Member Author

There are actually quite a few arguments for not including the ability to schedule something into the mainloop for the use in our pipeline so for now I would book this as "revisit later".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant