webbdaysW
Deno2y ago
11 replies
webbdays

deno in rust

While working on some feature.
We have found a bug.
Here is the bug: https://github.com/tailcallhq/tailcall/issues/1570

The codebase is an open source project: tailcallhq/tailcall on github,
codebase is using deno_core for its js runtime to call a given function from the given js script.
Here is the runtime: https://github.com/tailcallhq/tailcall/blob/main/src/cli/javascript/runtime.rs

But when running tests with multiple scripts, we can see old functions in old script executed in runtime persists. which we don't want to happen. unexpected test results.

I am not aware of deno_core much.
Its obvious to use different scope or context or even isolation.
I don't have enough knowledge of how to use the above mentioned.

Any or even the smallest help/guidance is welcomed.

By the way there is a bounty for it: $50

Thank you.
GitHub
Currently when we use the @file:abc.js annotation in a file like foo.md, and try to access it in bar.md we succeed. The expected behaviour is that all files defined in foo.md should be local to tha...
bug: Sandbox loaded files in execution spec · Issue #1570 · tailcal...
GitHub
A high-performance API Platform. Contribute to tailcallhq/tailcall development by creating an account on GitHub.
tailcall/src/cli/javascript/runtime.rs at main · tailcallhq/tailcall
Was this page helpful?