-
Notifications
You must be signed in to change notification settings - Fork 105
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
Top level async/await doesn't work in JavaScript runtime #44
Comments
There is no top-level Anyway, is there a workaround – I just need to call a function that results Promise and get that response somehow. |
I should have clarified. There's a top level promise that isn't ever awaited.
@jakubno is looking how we can fix it. One of the potential fixes is using a different kernel. We're looking at other kernels, ideally with TypeScript support. |
@punkpeye we're adding a new JS kernel in this branch https://github.com/e2b-dev/code-interpreter/tree/change-js-kernel |
Says not-found. Also, that Kernel worked completely fine. Looks like no one just read the documentation. |
It got merged - 5894232 Still in preview though. |
When running JS code in the Sandbox, the top level promise is never awaited:
The code above will produce a following output
The
text
field says'Promise { <pending> }'
which means the promise was never awaited.The text was updated successfully, but these errors were encountered: