diff --git a/Libraries/LibJS/Runtime/Object.h b/Libraries/LibJS/Runtime/Object.h index 1b3d757253..e869aee748 100644 --- a/Libraries/LibJS/Runtime/Object.h +++ b/Libraries/LibJS/Runtime/Object.h @@ -112,7 +112,6 @@ public: virtual bool is_array() const { return false; } virtual bool is_function() const { return false; } virtual bool is_typed_array() const { return false; } - virtual bool is_node_wrapper() const { return false; } virtual const char* class_name() const override { return "Object"; } virtual void visit_edges(Cell::Visitor&) override; diff --git a/Libraries/LibWeb/Bindings/RangePrototype.cpp b/Libraries/LibWeb/Bindings/RangePrototype.cpp index 9215e449f7..ed317cb1c6 100644 --- a/Libraries/LibWeb/Bindings/RangePrototype.cpp +++ b/Libraries/LibWeb/Bindings/RangePrototype.cpp @@ -80,7 +80,7 @@ JS_DEFINE_NATIVE_FUNCTION(RangePrototype::set_start) if (vm.exception()) return {}; - if (!arg0->is_node_wrapper()) { + if (!is(arg0)) { vm.throw_exception(global_object, JS::ErrorType::NotA, "Node"); return {}; } @@ -103,7 +103,7 @@ JS_DEFINE_NATIVE_FUNCTION(RangePrototype::set_end) if (vm.exception()) return {}; - if (!arg0->is_node_wrapper()) { + if (!is(arg0)) { vm.throw_exception(global_object, JS::ErrorType::NotA, "Node"); return {}; } diff --git a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp index 90cf49ef19..646987d783 100644 --- a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp +++ b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp @@ -480,7 +480,6 @@ public: generator.append(R"~~~( private: - virtual bool is_@wrapper_class:snakecase@() const final { return true; } )~~~"); for (auto& function : interface.functions) {