mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Replace GlobalObject with VM in remaining AOs [Part 4/4]
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
|
||||
namespace Web::WebGL {
|
||||
|
||||
JS::ThrowCompletionOr<WebGLContextAttributes> convert_value_to_context_attributes_dictionary(JS::GlobalObject& global_object, JS::Value value)
|
||||
JS::ThrowCompletionOr<WebGLContextAttributes> convert_value_to_context_attributes_dictionary(JS::VM& vm, JS::Value value)
|
||||
{
|
||||
auto& vm = global_object.vm();
|
||||
|
||||
// NOTE: This code was generated by the IDL code generator and then cleaned up.
|
||||
if (!value.is_nullish() && !value.is_object())
|
||||
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObjectOfType, "WebGLContextAttributes");
|
||||
|
||||
Reference in New Issue
Block a user