baphomet_the_traveller
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
On startup, I create a runtime:
Then I will recreate the runtime, since snapshot consumes it:
But the next time I reload from the snapshot in this way I get
WARNING: v8::OwnedIsolate for snapshot was leaked
, and some of the extensions result in a crash:
My extremely roundabout method here seems off to me
So how do I actually use snapshot correctly to avoid this67 replies
deno_console not being properly instantiated?
Not sure if it's indended, or if I am missing a step, but several core extensions, for example the deno_console crate, do not:
- specify an entrypoint for esm, leading to a panic on startup
- add their APIs to window or global, making them inert by default
In my implementation I've had to include a small extension of my own along-side console that does the following:
So my question; is that intended behaviour? Or did I miss a step somewhere
7 replies
Getting exports from an evaluated module with get_module_namespace always results in null values
Trying to get module exports like the example here
The module is loaded with load_main_module, I call mod_evaluate on the ID returned, then do the below:
But the value returned is always undefined
Js:
Rust:
11 replies
esm_entry_point / extension macro; ReferenceError
How do I use esm_entry_point properly?
I defined my extension as:
But I'm now getting a referenceerror about ext_name being undefined - which is odd since I can see it expands to define the struct
30 replies