1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

LibWeb: Fix build after atob/btoa changes

This commit is contained in:
Andreas Kling 2020-06-21 01:07:16 +02:00
parent bc4fa7a3c9
commit 8edecbea4b

View file

@ -213,7 +213,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::cancel_animation_frame)
JS_DEFINE_NATIVE_FUNCTION(WindowObject::atob) JS_DEFINE_NATIVE_FUNCTION(WindowObject::atob)
{ {
auto* impl = impl_from(interpreter); auto* impl = impl_from(interpreter, global_object);
if (!impl) if (!impl)
return {}; return {};
if (!interpreter.argument_count()) if (!interpreter.argument_count())
@ -227,7 +227,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::atob)
JS_DEFINE_NATIVE_FUNCTION(WindowObject::btoa) JS_DEFINE_NATIVE_FUNCTION(WindowObject::btoa)
{ {
auto* impl = impl_from(interpreter); auto* impl = impl_from(interpreter, global_object);
if (!impl) if (!impl)
return {}; return {};
if (!interpreter.argument_count()) if (!interpreter.argument_count())