From 1ef0078b4c773c52928b7857bc596f88c2920533 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 18 Mar 2021 18:34:18 +0100 Subject: [PATCH] js: Replace TypedArray class_name() string compare with is() --- Userland/Utilities/js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index db1f96c64b..4b80b8e9ac 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -310,7 +310,7 @@ static void print_typed_array(const JS::Object& object, HashTable& outln(); // FIXME: This kinda sucks. #define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName, ArrayType) \ - if (StringView(object.class_name()) == StringView(#ClassName)) { \ + if (is(object)) { \ out("[ "); \ auto& typed_array = static_cast(typed_array_base); \ auto data = typed_array.data(); \