Skip to content

Commit

Permalink
Update addon.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed May 11, 2024
1 parent 4ed0530 commit 849ec71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ PerContextData *Main(Local<Object> exports) {
Local<v8::Signature>(),
v8::ConstructorBehavior::kThrow,
v8::SideEffectType::kHasNoSideEffect,
&fast_byte_length_utf8)->GetFunction(context).ToLocalChecked()
&fast_byte_length_utf8)->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()

).ToChecked();

Expand Down

0 comments on commit 849ec71

Please sign in to comment.