diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-01 18:06:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 18:06:38 +0100 |
commit | d2613403e06dd4413f9c51a07605644de24fa2b5 (patch) | |
tree | 0a174e09893219122c0fbf3f62b6db834c0e0f19 /Libraries/LibWeb | |
parent | f48751a7392ba312c1995432517e3d5456cb9a07 (diff) | |
download | serenity-d2613403e06dd4413f9c51a07605644de24fa2b5.zip |
LibJS+LibWeb: Stop generating is_foo_wrapper() for JS DOM wrappers
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/Bindings/RangePrototype.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 1 |
2 files changed, 2 insertions, 3 deletions
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<NodeWrapper>(arg0)) { vm.throw_exception<JS::TypeError>(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<NodeWrapper>(arg0)) { vm.throw_exception<JS::TypeError>(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) { |