mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
BindingsGenerator+LibWeb: Pass a VM to static IDL-based functions
This saves us from having to yoink the VM out of thin air.
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
||||
virtual void inserted() override;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports
|
||||
static bool supports(String const& type)
|
||||
static bool supports(JS::VM&, String const& type)
|
||||
{
|
||||
return type.is_one_of("classic", "module");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user