summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-17 23:33:35 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-10-18 08:01:38 +0300
commitf6a5ff7b003930a1994c0f4c4a1c4b1da7c7123d (patch)
tree0a7cce77a5d3f9f81444ffb22047b4944e8be28d /Meta/Lagom/Fuzzers
parent20d990563cf858d51d4c6bf93a7c37317c5ecd12 (diff)
downloadserenity-f6a5ff7b003930a1994c0f4c4a1c4b1da7c7123d.zip
LibJS: Convert to_i32() to ThrowCompletionOr
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzilliJs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp
index f66d95c028..95bf3cf4e4 100644
--- a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp
@@ -143,9 +143,7 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli)
auto operation = TRY_OR_DISCARD(vm.argument(0).to_string(global_object));
if (operation == "FUZZILLI_CRASH") {
- auto type = vm.argument(1).to_i32(global_object);
- if (vm.exception())
- return {};
+ auto type = TRY_OR_DISCARD(vm.argument(1).to_i32(global_object));
switch (type) {
case 0:
*((int*)0x41414141) = 0x1337;