1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +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:
Linus Groh 2020-07-11 15:26:48 +01:00 committed by Andreas Kling
parent 7596ae4596
commit 7241b9ca0c
3 changed files with 1 additions and 16 deletions

View file

@ -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));
}