diff options
author | snek <snek@deno.com> | 2024-08-02 08:14:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 08:14:35 -0700 |
commit | 3a1a1cc030fb7fc90d51ee27162466d6ac924926 (patch) | |
tree | b23cc115bbe39d25eb8ff7dc410700b7f42cf46d /ext/node/lib.rs | |
parent | b82a2f114c7c936bf4398669453513ace478cb1d (diff) |
feat: async context (#24402)
We are switching to ContinuationPreservedEmbedderData. This allows
adding async context tracking to the various async operations that deno
provides.
Fixes: https://github.com/denoland/deno/issues/7010
Fixes: https://github.com/denoland/deno/issues/22886
Fixes: https://github.com/denoland/deno/issues/24368
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index a4a757996..74c528b0c 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -181,15 +181,6 @@ fn op_node_build_os() -> String { env!("TARGET").split('-').nth(2).unwrap().to_string() } -#[op2(fast)] -fn op_node_is_promise_rejected(value: v8::Local<v8::Value>) -> bool { - let Ok(promise) = v8::Local::<v8::Promise>::try_from(value) else { - return false; - }; - - promise.state() == v8::PromiseState::Rejected -} - #[op2] #[string] fn op_npm_process_state(state: &mut OpState) -> Result<String, AnyError> { @@ -350,7 +341,6 @@ deno_core::extension!(deno_node, ops::os::op_cpus<P>, ops::os::op_homedir<P>, op_node_build_os, - op_node_is_promise_rejected, op_npm_process_state, ops::require::op_require_init_paths, ops::require::op_require_node_module_paths<P>, |