diff options
Diffstat (limited to 'ext/ffi')
-rw-r--r-- | ext/ffi/00_ffi.js | 5 | ||||
-rw-r--r-- | ext/ffi/lib.rs | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js index a63a027e8..a1b177122 100644 --- a/ext/ffi/00_ffi.js +++ b/ext/ffi/00_ffi.js @@ -2,7 +2,6 @@ const core = globalThis.Deno.core; const ops = core.ops; -const internals = globalThis.__bootstrap.internals; const primordials = globalThis.__bootstrap.primordials; const { ArrayPrototypeMap, @@ -28,6 +27,7 @@ const { SymbolFor, WeakMap, } = primordials; +import { pathFromURL } from "internal:deno_web/00_infra.js"; const promiseIdSymbol = SymbolFor("Deno.core.internalPromiseId"); @@ -542,9 +542,6 @@ class DynamicLibrary { } function dlopen(path, symbols) { - // TODO(@crowlKats): remove me - // URL support is progressively enhanced by util in `runtime/js`. - const pathFromURL = internals.pathFromURL ?? ((p) => p); return new DynamicLibrary(pathFromURL(path), symbols); } diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index b8e3ac503..38a5a7eb2 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -83,6 +83,7 @@ pub(crate) struct FfiState { pub fn init<P: FfiPermissions + 'static>(unstable: bool) -> Extension { Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec!["deno_web"]) .esm(include_js_files!("00_ffi.js",)) .ops(vec![ op_ffi_load::decl::<P>(), |