Open mlejva opened 1 month ago
There is no top-level await
in this code by the way.
Anyway, is there a workaround – I just need to call a function that results Promise and get that response somehow.
There is no top-level
await
in this code by the way.
I should have clarified. There's a top level promise that isn't ever awaited.
Anyway, is there a workaround – I just need to call a function that results Promise and get that response somehow.
@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.
Says not-found.
Also, that Kernel worked completely fine. Looks like no one just read the documentation.
It got merged - https://github.com/e2b-dev/code-interpreter/commit/5894232f2360c1462bc099cdaeaec6902fca3b44 It's Deno. We're also looking at other kernels.
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.