-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mde
Author
Owner
|
||
} | ||
if (i > 0) { | ||
destructuring += ',\n '; | ||
|
May I ask why is that?