Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
use constructor rather than constructor.name for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
stutrek committed Apr 11, 2018
1 parent ce9c087 commit 90f5781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) +
Expand Down

0 comments on commit 90f5781

Please sign in to comment.