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:
Sam Atkins 2022-10-05 17:09:26 +01:00 committed by Linus Groh
parent 8a78679152
commit 0823a3c422
Notes: sideshowbarker 2024-07-17 06:11:48 +09:00
4 changed files with 14 additions and 11 deletions

View file

@ -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");
}