From 90f5781810798968ea46f557def3c3f5e2f99f40 Mon Sep 17 00:00:00 2001 From: Stu Kabakoff Date: Wed, 11 Apr 2018 19:04:41 -0400 Subject: [PATCH] use constructor rather than constructor.name for IE11 --- lib/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/object.js b/lib/object.js index b17d982..eb5b9e3 100644 --- a/lib/object.js +++ b/lib/object.js @@ -72,7 +72,7 @@ function hint(gj, options) { line: _.__line__ }); } - } else if (type === 'object' && _[name] && _[name].constructor.name !== 'Object') { + } else if (type === 'object' && _[name] && _[name].constructor !== Object) { return errors.push({ message: '"' + name + '" member should be ' + (type) +