DenoDDeno
Powered by
webbdaysW
Deno•2y 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
bug: Sandbox loaded files in execution spec · Issue #1570 · tailcal...
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
tailcall/src/cli/javascript/runtime.rs at main · tailcallhq/tailcall
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
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Using deno_kv in rust?
Testersen™TTestersen™ / help
10mo ago
Embedding all of deno in Rust?
Cherry 🍒CCherry 🍒 / help
2y ago
Most complete Deno Rust runtime?
rocketllRrocketll / help
3y ago