Skip to content

Commit

Permalink
Update node_fs_binding.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 23, 2024
1 parent 6cc795e commit e977421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/node/node_fs_binding.zig
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn call(comptime FunctionEnum: NodeFSFunctionEnum) NodeFSFunction {
var callback_argument = JSC.JSValue.zero;
if (this.is_callback_api) {
if (arguments_slice.len > 0) {
callback_argument = arguments_slice[arguments_slice.len - 1];
callback_argument = arguments_slice[arguments_slice.len - 1].withAsyncContextIfNeeded(globalObject);
arguments_slice = arguments_slice[0 .. arguments_slice.len - 1];
}
}
Expand Down

0 comments on commit e977421

Please sign in to comment.