Fix spelling of "Expressions" (#9896)

This commit is contained in:
Jeff 2019-04-26 05:57:32 -04:00 committed by Nicolò Ribaudo
parent cf3668779c
commit 293f3c98d2

View File

@ -23,7 +23,7 @@ export default declare((api, options) => {
* the second member and convert that one, which reflects the spec behavior * the second member and convert that one, which reflects the spec behavior
* of template literals. * of template literals.
*/ */
function buildConcatCallExressions(items) { function buildConcatCallExpressions(items) {
let avail = true; let avail = true;
return items.reduce(function(left, right) { return items.reduce(function(left, right) {
let canBeInserted = t.isLiteral(right); let canBeInserted = t.isLiteral(right);
@ -133,7 +133,7 @@ export default declare((api, options) => {
root = t.binaryExpression("+", root, nodes[i]); root = t.binaryExpression("+", root, nodes[i]);
} }
} else if (nodes.length > 1) { } else if (nodes.length > 1) {
root = buildConcatCallExressions(nodes); root = buildConcatCallExpressions(nodes);
} }
path.replaceWith(root); path.replaceWith(root);