diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-09-11 15:01:40 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 00:16:39 +0200 |
commit | 470262c8ab58ba1aea9fecc5098df31d50d44f87 (patch) | |
tree | c2cc6308aa4f4be0cc055280f20fc56a8fc126d2 /Tests/LibJS/test-js.cpp | |
parent | 9def17d4cb66bc6e091e430cf711500ee430eba7 (diff) | |
download | serenity-470262c8ab58ba1aea9fecc5098df31d50d44f87.zip |
LibJS: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Tests/LibJS/test-js.cpp')
-rw-r--r-- | Tests/LibJS/test-js.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp index 5bd418c769..42ba304eb8 100644 --- a/Tests/LibJS/test-js.cpp +++ b/Tests/LibJS/test-js.cpp @@ -38,7 +38,7 @@ TESTJS_GLOBAL_FUNCTION(get_weak_set_size, getWeakSetSize) if (!object) return {}; if (!is<JS::WeakSet>(object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "WeakSet"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "WeakSet"); return {}; } auto* weak_set = static_cast<JS::WeakSet*>(object); @@ -51,7 +51,7 @@ TESTJS_GLOBAL_FUNCTION(get_weak_map_size, getWeakMapSize) if (!object) return {}; if (!is<JS::WeakMap>(object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "WeakMap"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "WeakMap"); return {}; } auto* weak_map = static_cast<JS::WeakMap*>(object); |