We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf8b84 commit 076dcb6Copy full SHA for 076dcb6
lib/ejs.js
@@ -602,7 +602,7 @@ Template.prototype = {
602
for (var i = 0; i < opts.destructuredLocals.length; i++) {
603
var name = opts.destructuredLocals[i];
604
if (!_JS_IDENTIFIER.test(name)) {
605
- throw new Error(`destructuredLocals[${i}] is not a valid JS identifier.`);
+ throw new Error('destructuredLocals[' + i + '] is not a valid JS identifier.');
606
}
607
if (i > 0) {
608
destructuring += ',\n ';
0 commit comments