mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibWeb: Replace GlobalObject with VM in remaining AOs [Part 4/4]
This commit is contained in:
parent
2d69a3b266
commit
7b990c27a1
9 changed files with 62 additions and 66 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue