mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
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.
This commit is contained in:
parent
7596ae4596
commit
7241b9ca0c
Notes:
sideshowbarker
2024-07-19 04:57:00 +09:00
Author: https://github.com/linusg
Commit: 7241b9ca0c
Pull-request: https://github.com/SerenityOS/serenity/pull/2762
3 changed files with 1 additions and 16 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue