Don't use template literal

This commit is contained in:
mde
2022-04-20 09:36:05 -07:00
parent faf8b849a4
commit 076dcb643c

View File

@@ -602,7 +602,7 @@ Template.prototype = {
for (var i = 0; i < opts.destructuredLocals.length; i++) {
var name = opts.destructuredLocals[i];
if (!_JS_IDENTIFIER.test(name)) {
throw new Error(`destructuredLocals[${i}] is not a valid JS identifier.`);
throw new Error('destructuredLocals[' + i + '] is not a valid JS identifier.');
}
if (i > 0) {
destructuring += ',\n ';