substack/dnode-protocol — Issue #9: Browser/client can't validate Mongoose document object when in callback response
Author: paulshapiro
Created: 2011-11-18 21:02:00+00:00
State: open

I get this in Safari 5.1.1

TypeError: 'undefined' is not an object (evaluating 'Object.propertyIsEnumerable.call(d,f)') dnode.js:1

and this in Chrome:

Uncaught TypeError: Cannot convert null to object
require.modules.events.a.emitdnode.js:1
require.modules./node_modules/dnode-protocol/index.js.f.Session.d.parsednode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.c.emitdnode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.c.onPacketdnode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.d.onPacketdnode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.c.onPacketdnode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.c.onDatadnode.js:1
require.modules./node_modules/socket.io-client/dist/browserify.js.d.open.websocket.onmessage

When I run the object through JSON.parse(JSON.stringify(...)) the browser receives it without issue.