diff options
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 c82a467c32..f6781a9750 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayBufferConstructor.cpp @@ -53,7 +53,7 @@ ThrowCompletionOr<Object*> ArrayBufferConstructor::construct(FunctionObject& new auto byte_length_or_error = vm.argument(0).to_index(global_object()); if (byte_length_or_error.is_error()) { auto error = byte_length_or_error.release_error(); - if (error.value().is_object() && is<RangeError>(error.value().as_object())) { + if (error.value()->is_object() && is<RangeError>(error.value()->as_object())) { // Re-throw more specific RangeError vm.clear_exception(); return vm.throw_completion<RangeError>(global_object(), ErrorType::InvalidLength, "array buffer"); |