Skip to content

Commit

Permalink
Fix naming on create_js_thread_safe_method (#9810)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Jun 20, 2024
1 parent a1b5bee commit bfd336a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/node-bindings/src/file_system/file_system_napi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ fn create_js_thread_safe_method<
Response: Send + DeserializeOwned + 'static + FromNapiValue,
>(
env: &Env,
js_file_system: &JsObject,
js_object: &JsObject,
method_name: &str,
) -> Result<impl Fn(Params) -> Response, napi::Error> {
let jsfn: JsFunction = js_file_system.get_property(env.create_string(method_name)?)?;
let jsfn: JsFunction = js_object.get_property(env.create_string(method_name)?)?;

let threadsafe_function = env.create_threadsafe_function(
&jsfn,
Expand Down

0 comments on commit bfd336a

Please sign in to comment.