Use empty string instead of undefined.

This commit is contained in:
John-David Dalton
2016-10-10 10:27:57 -07:00
parent a621ba236a
commit 286f1abb87

View File

@@ -6013,7 +6013,7 @@
getTag = function(value) { getTag = function(value) {
var result = baseGetTag(value), var result = baseGetTag(value),
Ctor = result == objectTag ? value.constructor : undefined, Ctor = result == objectTag ? value.constructor : undefined,
ctorString = Ctor ? toSource(Ctor) : undefined; ctorString = Ctor ? toSource(Ctor) : '';
if (ctorString) { if (ctorString) {
switch (ctorString) { switch (ctorString) {