goja_nodejs
goja_nodejs copied to clipboard
Nodejs compatibility library for Goja
I have a JavaScript Library, namely [immer.js](https://immerjs.github.io/immer/) that I would love to run in goja. Judging by the looks of it immer prefers to work with Proxy objects, [but can...
I'd like to propose that a community be built around this for all contributors to communicate, as well as for others to asked question. Was thinking discord.
Loading a directory module (i.e. `require('dir')`) currently fails with `The handle is invalid.` in windows. I believe it's a problem with go, raised an issue: https://github.com/golang/go/issues/43322
# Problem The application I'm working on right now has some logic that will recover from panics at the highest level to perform some additional logging (mostly of internal state...
When registering a module concurrently, it panics. github.com/dop251/goja_nodejs/require.RegisterCoreModule(...) https://github.com/dop251/goja_nodejs/blob/27eeffc9c235216a0c941bb6765824adb285e4aa/require/module.go#L240-L246
I have a very basic program, trying out this library before actually incorporating it into my project. `script, err := os.ReadFile("algos/sample_plugin/sample_plugin.js") if err != nil { panic(err) } // Read...
There is a setInterval that has not been cleared, it will be hang at `evenloop.Run`, see the code below: ``` func main() { loop := eventloop.NewEventLoop() var test goja.Callable loop.Run(func(vm...