From d7654aebd7e6c749c535e12c6f3f6cd7c6fb28f4 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sat, 19 Nov 2022 11:49:40 +0000 Subject: [PATCH] LibJS: Match spec behaviour in TypedArray.prototype.fill This just replaces an instance where TRY was used when MUST should have been, reflecting the difference between ? and ! in the spec. --- Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp b/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp index 412b30e697..168344f577 100644 --- a/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp @@ -463,7 +463,7 @@ JS_DEFINE_NATIVE_FUNCTION(TypedArrayPrototype::fill) for (; k < final; ++k) { // a. Let Pk be ! ToString(𝔽(k)). // b. Perform ! Set(O, Pk, value, true). - TRY(typed_array->set(k, value, Object::ShouldThrowExceptions::Yes)); + MUST(typed_array->set(k, value, Object::ShouldThrowExceptions::Yes)); // c. Set k to k + 1. }