diff --git a/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp index 4689174065d..b046a05387f 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -70,7 +71,8 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayBufferConstructor::is_view) return Value(false); if (arg.as_object().is_typed_array()) return Value(true); - // FIXME: Check for DataView as well + if (is(arg.as_object())) + return Value(true); return Value(false); }