Skip to content

Commit 076dcb6

Browse files
committed
Don't use template literal
1 parent faf8b84 commit 076dcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ejs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Template.prototype = {
602602
for (var i = 0; i < opts.destructuredLocals.length; i++) {
603603
var name = opts.destructuredLocals[i];
604604
if (!_JS_IDENTIFIER.test(name)) {
605-
throw new Error(`destructuredLocals[${i}] is not a valid JS identifier.`);
605+
throw new Error('destructuredLocals[' + i + '] is not a valid JS identifier.');
606606
}
607607
if (i > 0) {
608608
destructuring += ',\n ';

0 commit comments

Comments
 (0)