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

2
dist/lodash.js vendored
View File

@@ -5797,7 +5797,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 = defaults({}, options, settings);