Skip to content

Commit

Permalink
remove unreachable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 18, 2022
1 parent 5c6b8fa commit 078397e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/string-cooked.js
Expand Up @@ -13,7 +13,7 @@ module.exports = function cooked(template /* , ...substitutions */) {
var argumentsLength = arguments.length;
var elements = [];
var i = 0;
while (literalSegments > i) {
while (true) {
var nextVal = cookedTemplate[i++];
if (nextVal === undefined) throw $TypeError('Incorrect template');
push(elements, toString(nextVal));
Expand Down

0 comments on commit 078397e

Please sign in to comment.