From 293a36f98d3614368d24f7804d2fc4191a54c0e3 Mon Sep 17 00:00:00 2001 From: snek Date: Wed, 19 Jun 2024 11:33:46 -0700 Subject: fix: more node-api fixes (#24220) - add fallback impls of external string apis which always copy. after upstream changes to rusty_v8 we can support non-copying api as well. - `napi_get_buffer_data` needs to work on all TypedArray instances. - Fixes: https://github.com/denoland/deno/issues/24209 - `target_defaults.default_configuration` is used by some modules to find the corresponding node file from node-gyp - `node_api_get_module_filename` expects the filename to be a `file:` url. --- ext/node/polyfills/process.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts index bec62122b..02837f827 100644 --- a/ext/node/polyfills/process.ts +++ b/ext/node/polyfills/process.ts @@ -403,7 +403,9 @@ Process.prototype.chdir = chdir; /** https://nodejs.org/api/process.html#processconfig */ Process.prototype.config = { - target_defaults: {}, + target_defaults: { + default_configuration: "Release", + }, variables: {}, }; -- cgit v1.2.3