We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f804303 commit beb97a3Copy full SHA for beb97a3
src/serializers/comparisons.js
@@ -65,7 +65,7 @@ var oppositeTypeMap = {
65
hydrateMap.$not = function(value, unknownHydrator) {
66
// Many nots can be hydrated to their opposite.
67
var hydratedValue = hydrateValue(value.$not, unknownHydrator);
68
- var typeName = hydratedValue.constructor.name;
+ var typeName = hydratedValue.constructor.name || hydratedValue.constructor.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
69
70
if(oppositeTypeMap[typeName]) {
71
var options = oppositeTypeMap[typeName];
0 commit comments