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

await-ing in repl mode #18

Open
teidesu opened this issue Jan 12, 2025 · 1 comment
Open

await-ing in repl mode #18

teidesu opened this issue Jan 12, 2025 · 1 comment

Comments

@teidesu
Copy link

teidesu commented Jan 12, 2025

repro

  1. go to https://chii.liriliri.io/playground/test/iframe.html
  2. try running await new Promise(resolve => resolve(42))

expected

42 is shown as the expression result

actual

an error is thrown:
image

@teidesu
Copy link
Author

teidesu commented Jan 12, 2025

chobitsu.patch

was able to make it work with this crude patch but not sure if this is the best way to do so + we would probably also want some kind of timeout just in case

(also is there any specific reason releaseObject is noop-ed while being implemented in runtime domain? sounds like a recipe for a memory leak 🙃)

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