From 524bccdf6aa20ee4ba76dc7291d77b4c98fa7e28 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 1 Feb 2023 06:41:04 -0800 Subject: fix(napi): return node globalThis from napi_get_global (#17613) Fixes https://github.com/denoland/deno/issues/17587 --- test_napi/common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test_napi/common.js') 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: {}, + }); } -- cgit v1.2.3