fix(ext/node): support vm dynamic import callback (#34572)
Closes denoland/orchid#335 Implements node:vm importModuleDynamically support by carrying a per-runtime callback key through V8 host-defined options, invoking the registered JS trampoline from the dynamic import host callback, and resolving returned vm.Module instances through evaluation/namespace extraction. Covered APIs: - vm.Script and runInThisContext/runInContext/runInNewContext - vm.compileFunction - vm.createContext inherited callback - vm.SourceTextModule Verification: - cargo check -p deno_node - ./target/debug/deno run -A tests/specs/node/vm_dynamic_import_no_callback/main.mjs - ./target/debug/deno run -A tests/specs/node/vm_dynamic_import_callback/main.mjs Co-authored-by: divybot <divybot@users.noreply.github.com> Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
17f952a6fb049cea7fc8119a9eca9085b94b2a54
Parent: 919027e
Committed by GitHub <noreply@github.com>
on 5/30/2026, 3:55:59 PM