Skip to content

Commit e404270

Browse files
JSI build
1 parent 4d03c02 commit e404270

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Polyfills/Canvas/Source/Context.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ namespace Babylon::Polyfills::Internal
188188
{
189189
return Napi::Value::From(Env(), std::get<std::string>(m_fillStyle));
190190
}
191-
else {
192-
return std::get<CanvasGradient*>(m_fillStyle)->Value();
191+
else
192+
{
193+
return Napi::External<CanvasGradient>::New(Env(), std::get<CanvasGradient*>(m_fillStyle));
193194
}
194195
}
195196

0 commit comments

Comments
 (0)