mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
LibJS: Replace GlobalObject with VM in ArrayBuffer AOs [Part 11/19]
This commit is contained in:
parent
b037894287
commit
26366d5930
Notes:
sideshowbarker
2024-07-17 08:00:15 +09:00
Author: https://github.com/linusg
Commit: 26366d5930
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
8 changed files with 37 additions and 32 deletions
|
@ -74,7 +74,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::detach_array_buffer)
|
|||
return vm.throw_completion<TypeError>();
|
||||
|
||||
auto& array_buffer_object = static_cast<ArrayBuffer&>(array_buffer.as_object());
|
||||
TRY(JS::detach_array_buffer(global_object, array_buffer_object, vm.argument(1)));
|
||||
TRY(JS::detach_array_buffer(vm, array_buffer_object, vm.argument(1)));
|
||||
return js_null();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue