diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-06-30 21:06:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 09:36:33 +0530 |
commit | cd4a0072dc3a9c8783e0a864af9bd428552c2407 (patch) | |
tree | da71f2e1ce47f82c44c5f6bad1b57ca2c101b2e3 /ext/ffi/dlfcn.rs | |
parent | bc8a0e6e68547cf07a246b8b6c886de155dc8282 (diff) |
BREAKING(unstable/ffi): remove callback reentrant flag (#24367)
Closes https://github.com/denoland/deno/issues/22947
This option is no longer needed as fast calls are now allowed to
re-enter the isolate
Diffstat (limited to 'ext/ffi/dlfcn.rs')
-rw-r--r-- | ext/ffi/dlfcn.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/ffi/dlfcn.rs b/ext/ffi/dlfcn.rs index 02ab4bb6a..2bc9ab341 100644 --- a/ext/ffi/dlfcn.rs +++ b/ext/ffi/dlfcn.rs @@ -60,18 +60,11 @@ pub struct ForeignFunction { pub result: NativeType, #[serde(rename = "nonblocking")] non_blocking: Option<bool>, - #[serde(rename = "callback")] - #[serde(default = "default_callback")] - callback: bool, #[serde(rename = "optional")] #[serde(default = "default_optional")] optional: bool, } -fn default_callback() -> bool { - false -} - fn default_optional() -> bool { false } @@ -191,7 +184,6 @@ where ptr, parameter_types: foreign_fn.parameters, result_type: foreign_fn.result, - can_callback: foreign_fn.callback, }); resource.symbols.insert(symbol_key, sym.clone()); |