Ensure _.template coerces the text argument to a string.

This commit is contained in:
John-David Dalton
2013-10-03 23:30:49 -07:00
parent 49e22742de
commit e114c18031
8 changed files with 18 additions and 11 deletions

View File

@@ -6153,7 +6153,7 @@
// and Laura Doktorova's doT.js
// https://github.com/olado/doT
var settings = lodash.templateSettings;
text || (text = '');
text = String(text || '');
// avoid missing dependencies when `iteratorTemplate` is not defined
options = iteratorTemplate ? defaults({}, options, settings) : settings;