diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-21 17:25:31 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:58:30 +0100 |
commit | 26366d5930dca8f82392d2660f50522dea20020b (patch) | |
tree | 657f4bfe7b6d8f29d991b1793576c751d9c9bea3 /Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp | |
parent | b037894287dd32b73a6c1f4cc496b5363b34db7f (diff) | |
download | serenity-26366d5930dca8f82392d2660f50522dea20020b.zip |
LibJS: Replace GlobalObject with VM in ArrayBuffer AOs [Part 11/19]
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp index ca71073464..94c56f6d62 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp @@ -56,7 +56,7 @@ ThrowCompletionOr<Object*> ArrayBufferConstructor::construct(FunctionObject& new } return error; } - return TRY(allocate_array_buffer(global_object(), new_target, byte_length_or_error.release_value())); + return TRY(allocate_array_buffer(vm, new_target, byte_length_or_error.release_value())); } // 25.1.4.1 ArrayBuffer.isView ( arg ), https://tc39.es/ecma262/#sec-arraybuffer.isview |