diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-12 21:54:02 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-16 14:32:22 +0100 |
commit | 24e9cea524e3c81bc8c53ef668cd69990b98b3ec (patch) | |
tree | 51a97a73de8c1ac709844ca74208d9b8b7ccf92d /Tests/LibJS | |
parent | c17589a4020f961295264c92dd1154f986986367 (diff) | |
download | serenity-24e9cea524e3c81bc8c53ef668cd69990b98b3ec.zip |
LibJS: Convert remaining usages of Value::TDSWOSE to Value::TSWOSE
Note the couple of cases using MUST are just debugging statements.
Diffstat (limited to 'Tests/LibJS')
-rw-r--r-- | Tests/LibJS/test-js.cpp | 2 | ||||
-rw-r--r-- | Tests/LibJS/test262-runner.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp index 62478a46d1..b4022b5c8f 100644 --- a/Tests/LibJS/test-js.cpp +++ b/Tests/LibJS/test-js.cpp @@ -53,7 +53,7 @@ TESTJS_GLOBAL_FUNCTION(mark_as_garbage, markAsGarbage) { auto argument = vm.argument(0); if (!argument.is_string()) - return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAString, argument.to_deprecated_string_without_side_effects()); + return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAString, TRY_OR_THROW_OOM(vm, argument.to_string_without_side_effects())); auto& variable_name = argument.as_string(); diff --git a/Tests/LibJS/test262-runner.cpp b/Tests/LibJS/test262-runner.cpp index 3765d79acf..a7fcba1e60 100644 --- a/Tests/LibJS/test262-runner.cpp +++ b/Tests/LibJS/test262-runner.cpp @@ -112,22 +112,22 @@ static Result<void, TestError> run_program(InterpreterT& interpreter, ScriptOrMo auto name = object.get_without_side_effects("name"); if (!name.is_empty() && !name.is_accessor()) { - error.type = name.to_deprecated_string_without_side_effects(); + error.type = name.to_string_without_side_effects().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); } else { auto constructor = object.get_without_side_effects("constructor"); if (constructor.is_object()) { name = constructor.as_object().get_without_side_effects("name"); if (!name.is_undefined()) - error.type = name.to_deprecated_string_without_side_effects(); + error.type = name.to_string_without_side_effects().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); } } auto message = object.get_without_side_effects("message"); if (!message.is_empty() && !message.is_accessor()) - error.details = message.to_deprecated_string_without_side_effects(); + error.details = message.to_string_without_side_effects().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); } if (error.type.is_empty()) - error.type = error_value.to_deprecated_string_without_side_effects(); + error.type = error_value.to_string_without_side_effects().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); return error; } return {}; |