summaryrefslogtreecommitdiff
path: root/test_napi/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'test_napi/common.js')
-rw-r--r--test_napi/common.js6
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: {},
+ });
}