summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/AST.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-07-11 15:26:48 +0100
committerAndreas Kling <kling@serenityos.org>2020-07-11 18:38:51 +0200
commit7241b9ca0ccf549974a2fbe3efa07e01f02d5817 (patch)
tree65a57e31f8f1fd84d885f9ade5e5ee2da587b7a2 /Libraries/LibJS/AST.cpp
parent7596ae4596ee96e510d61399227c4f681b87a36e (diff)
downloadserenity-7241b9ca0ccf549974a2fbe3efa07e01f02d5817.zip
LibJS: Remove a few superfluous exception checks
We don't need to check for exceptions when defining properties on an array we literally created ourselves a few lines earlier.
Diffstat (limited to 'Libraries/LibJS/AST.cpp')
-rw-r--r--Libraries/LibJS/AST.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp
index 65832acdba..f1b1cd45bb 100644
--- a/Libraries/LibJS/AST.cpp
+++ b/Libraries/LibJS/AST.cpp
@@ -1777,9 +1777,6 @@ Value TaggedTemplateLiteral::execute(Interpreter& interpreter, GlobalObject& glo
raw_strings->indexed_properties().append(value);
}
strings->define_property("raw", raw_strings, 0);
- if (interpreter.exception())
- return {};
-
return interpreter.call(tag_function, js_undefined(), move(arguments));
}