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...
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.
W
webbdays18d ago
one can solve it or guide us there in the issue. It is greatly welcomed and appreciated. its a blocker for a new feature currently. someone?
L
Leokuma17d ago
I'm not familiar with Tailcall, so maybe what I'm going to say makes no sense, but what if you wrap each markdown's code in inside an IIFE ?
W
webbdays17d ago
idea is users defines several function once before start of the application. And each func maybe or maynot be called based on some user defined config. not all functions to be called. sorry, i understand your point clearly now. for that we need to parse the given functions individually, and covert it to IIFE function and execute. Nice idea. if you are familar with rust and intrested in bounty and open source can you go and implement this.
L
Leokuma17d ago
I'm not familiar with Rust, sorry. But feel free to implement that idea if it really works and there's no better alternative
W
webbdays17d ago
Sure. I will try.
More Posts
Signals & Data Fetching1. Should I declare useSignal on route or island? 2. How to fetch data? Make an async route? Do useEError Using Google PubSub With DenoHi there, I am trying to work with PubSub using Deno. I am able to access and create new PubSub inDeno deploy IPHey! Is that possible to get the IP address of a deployment on Deno deploy? The backend we host theUbuntu Server HTTPSHow can I add https i Ubuntu Server to run Deno API over https? Without using Apache. I run deno coUse Deno as a type checker for a front-end project?Hey. I have a need to increase the speed of typechecking my frontend project. I'm not sure, but it sLogger Structure argsI am implementing a simple access log in Deno Fresh, but I am not quite sure how to use the standardAdd static font files as a fresh pluginHello! I'm creating a component library for Fresh. I'm in the part of setting up the plugin part of Compiling code breaks it (except on Linux)error: [ERR_MODULE_NOT_FOUND] Cannot find module "C:\Users\Eris\AppData\Local\Temp\deno-compile-llm-Interface with unknown amount of keys but all the same typeHow do i create an interface/type that can have unlimited keys but the values are all the same type?How to open a file as blob?Docs for Blob (https://deno.land/api@v1.42.0?s=Blob) say that `File` implements `Blob`. But the docsDeno deploy running my code multiple timesIm hosting a small discord bot on deno deploy but for some reason its firing the events multiple timvalue too large in kv (30kb)I'm getting a value too large error when setting a value in KV (on deploy) even though the value is How to work without a tsconfig.json in VSCode? Getting typescript errors due to React.``` Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compilupdate deno version on Alpineon alpine the version of deno is 1.38.1 https://pkgs.alpinelinux.org/packages?name=deno is there a rDeno blog deployment failureHi all, recently tried to make a new blog post on personal blog, however now the deployment fails (nFresh 1.6 - Deno Deploy - TailwindDeploying my project on deno deploy is not working. Does anyone have the same issue ? I am using taAnalyze dependencies for deno compileIs there a way to analyze the dependencies that is added when running deno compile? My compiled binaHow to install jupyter using deno v1.41.xAccording to the documentation https://docs.deno.com/runtime/manual/tools/jupyter the command shouldHelp with TypeScript namespaces - is this pattern supported?Hi! I am attempting to model some classes in a Namespace for organization purposes. I would expect tfont regenerator for copying restriction purposes on DenoI am developing a web reader PWA primarily for reading CJK character text. If I do not want users