summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
authorsnek <snek@deno.com>2024-06-19 11:33:46 -0700
committerGitHub <noreply@github.com>2024-06-19 11:33:46 -0700
commit293a36f98d3614368d24f7804d2fc4191a54c0e3 (patch)
treebea097934bd7264318dba5762a369267d7ceea9e /ext/node/polyfills
parent6c6ee02dfdb0f158a0aab20905e362100b2c3328 (diff)
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.
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/process.ts4
1 files changed, 3 insertions, 1 deletions
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: {},
};