mirror of
https://github.com/denoland/deno.git
synced 2025-08-10 05:48:06 +00:00
fix(napi): return node globalThis from napi_get_global (#17613)
Fixes https://github.com/denoland/deno/issues/17587
This commit is contained in:
parent
1b46b2f0e4
commit
524bccdf6a
7 changed files with 68 additions and 6 deletions
|
@ -17,5 +17,9 @@ const [libPrefix, libSuffix] = {
|
|||
|
||||
export function loadTestLibrary() {
|
||||
const specifier = `${targetDir}/${libPrefix}test_napi.${libSuffix}`;
|
||||
return Deno[Deno.internal].core.ops.op_napi_open(specifier); // Internal, used in ext/node
|
||||
|
||||
// Internal, used in ext/node
|
||||
return Deno[Deno.internal].core.ops.op_napi_open(specifier, {
|
||||
Buffer: {},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue