boopus_the_snootus
boopus_the_snootus
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
You may find this of some use as a reference
11 replies
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
Lemme know if you have more questions
11 replies
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
You can find an example on the deno GitHub, in runtime/js
11 replies
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
So youll need to set up window yourself in the global scope, the runtime doesn't do that for you
11 replies
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
Yes I figured
11 replies
DDeno
Created by aquakilo on 7/11/2024 in #help
How can I execute DOM-reliant javascript in deno_core?
What's the error you're getting? You'll probably need the web extension at least
11 replies
DDeno
Created by chyyran on 10/16/2023 in #help
Bootstrapping a minimal node-compatible runtime
Happy to help
7 replies
DDeno
Created by chyyran on 10/16/2023 in #help
Bootstrapping a minimal node-compatible runtime
The esm is already in the snapshot
7 replies
DDeno
Created by chyyran on 10/16/2023 in #help
Bootstrapping a minimal node-compatible runtime
If so just use init_ops not init_ops_and_esm
7 replies
DDeno
Created by chyyran on 10/16/2023 in #help
Bootstrapping a minimal node-compatible runtime
You using a snapshot to init the runtime?
7 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
PR is up
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
If that passes too I'll open a pr later tonight
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
I want to try again with a larger module, but seems stable so far
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Test passed
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
It's still going but its been over a minute and it keeps bouncing between 36 and 40k usage for the process 🙂 No steady climb
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Running the test now Loading and unloading 1000 modules 1000 times
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
If it sounds kosher to you I'll set up the PR
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Yup, seems to let me reset, still use ops, and reload modules again!
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
I'll take a backup copy of the global object on startup, Then I just have to revert that and call clear_modules() on my runtime instance And boom, no snapshots
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Super easy: In realms:
/// Clears all loaded modules
pub fn clear_modules(&mut self) {
self.0.module_map().borrow_mut().clear_module_map(&[])
}
/// Clears all loaded modules
pub fn clear_modules(&mut self) {
self.0.module_map().borrow_mut().clear_module_map(&[])
}
And in runtime:
/// Clears all loaded modules
pub fn clear_modules(&mut self) {
self.main_realm().clear_modules()
}
/// Clears all loaded modules
pub fn clear_modules(&mut self) {
self.main_realm().clear_modules()
}
67 replies