tjwebb / congruence

Validate the structure of Javascript objects using semantic templates. Written as a lodash mixin.
https://npmjs.org/package/congruence
8 stars 1 forks source link

TypeError: Object.keys called on non-object #2

Closed tjwebb closed 10 years ago

tjwebb commented 10 years ago

Should not be possible to cause this error

TypeError: Object.keys called on non-object
      at Function.keys (native)
      at _testSubtree (/home/tjwebb/workspace/xtuple/xtuple/node-datasource/lib/query/node_modules/congruence/congruence.js:31:22)
      at congruence.isDefined (/home/tjwebb/workspace/xtuple/xtuple/node-datasource/lib/query/node_modules/congruence/congruence.js:50:17)
      at Array.every (native)
      at Function._.every._.all (/home/tjwebb/workspace/xtuple/xtuple/node-datasource/lib/query/node_modules/underscore/underscore.js:193:62)
      at _testSubtree (/home/tjwebb/workspace/xtuple/xtuple/node-datasource/lib/query/node_modules/congruence/congruence.js:36:14)
      at Function.test (/home/tjwebb/workspace/xtuple/xtuple/node-datasource/lib/query/node_modules/congruence/congruence.js:92:12)