diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-01 06:41:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 15:41:04 +0100 |
commit | 524bccdf6aa20ee4ba76dc7291d77b4c98fa7e28 (patch) | |
tree | a312f7fadf6a086f37bcc5326b42efbe114617be /test_napi/common.js | |
parent | 1b46b2f0e47b93635b8f225f43bb82fd79dd31dc (diff) |
fix(napi): return node globalThis from napi_get_global (#17613)
Fixes https://github.com/denoland/deno/issues/17587
Diffstat (limited to 'test_napi/common.js')
-rw-r--r-- | test_napi/common.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test_napi/common.js b/test_napi/common.js index 915a43818..09378918f 100644 --- a/test_napi/common.js +++ b/test_napi/common.js @@ -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: {}, + }); } |