Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
deluvas1911 committed Nov 29, 2024
1 parent 733ee60 commit 3c62550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/helpers/CallContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace js

bool CheckExtraInternalFieldJSValue()
{
return Check(!info.This()->GetInternalField(1).As<v8::Value>()->IsNullOrUndefined(), "Invalid extra internal field value");
return Check(!info.This()->GetInternalField(1).template As<v8::Value>()->IsNullOrUndefined(), "Invalid extra internal field value");
}

v8::Local<v8::Object> GetThis()
Expand Down Expand Up @@ -131,7 +131,7 @@ namespace js
{
if(errored) return {};
if(info.This()->InternalFieldCount() != 2) return {};
std::optional<T> value = CppValue<T>(info.This()->GetInternalField(1).As<v8::Value>());
std::optional<T> value = CppValue<T>(info.This()->GetInternalField(1).template As<v8::Value>());
if(!value.has_value()) return T{};
return value.value();
}
Expand Down

0 comments on commit 3c62550

Please sign in to comment.