diff --git a/Tests/LibWeb/Text/expected/Wasm/WebAssembly-grow.txt b/Tests/LibWeb/Text/expected/Wasm/WebAssembly-grow.txt index b8b0bd8b4ce..f72bd908f33 100644 --- a/Tests/LibWeb/Text/expected/Wasm/WebAssembly-grow.txt +++ b/Tests/LibWeb/Text/expected/Wasm/WebAssembly-grow.txt @@ -1,3 +1,3 @@ Made memory [object WebAssembly.Memory] with buffer [object ArrayBuffer] (byteLength 655360) After growing buffer (byteLength 983040) -Got error: 'RangeError: Number '4294967296' is outside of allowed range of 0 to 4294967295' +Got error: 'TypeError: Number '4294967296' is outside of allowed range of 0 to 4294967295' diff --git a/Userland/Libraries/LibWeb/WebIDL/AbstractOperations.cpp b/Userland/Libraries/LibWeb/WebIDL/AbstractOperations.cpp index 6c3a0f54e6d..2ca54bfc47b 100644 --- a/Userland/Libraries/LibWeb/WebIDL/AbstractOperations.cpp +++ b/Userland/Libraries/LibWeb/WebIDL/AbstractOperations.cpp @@ -384,7 +384,7 @@ JS::ThrowCompletionOr convert_to_int(JS::VM& vm, JS::Value value, EnforceRang // 3. If x < lowerBound or x > upperBound, then throw a TypeError. if (x < lower_bound || x > upper_bound) - return vm.throw_completion(MUST(String::formatted("Number '{}' is outside of allowed range of {} to {}", x, lower_bound, upper_bound))); + return vm.throw_completion(MUST(String::formatted("Number '{}' is outside of allowed range of {} to {}", x, lower_bound, upper_bound))); // 4. Return x. return x;