You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The debug node is set to display msg.req.files which is an array of objects containing the files received.
In debug.js, the error is thrown at:
function sendDebug(msg) {
....
msg.format = msg.msg.constructor.name || "Object";
msg.msg is the output, in this case msg.req.files (Note: the name msg refers to different objects)
msg.req.files.constructor is 'undefined' and therefore does not have a property 'name' - javascript throws an exception rather than return 'undefined' like it would for a defined object.
The text was updated successfully, but these errors were encountered:
There is a case where the debug node will throw TypeError: Cannot read property 'name' of undefined
A test case involves the httpInMultipart node:
The debug node is set to display msg.req.files which is an array of objects containing the files received.
In debug.js, the error is thrown at:
msg.msg is the output, in this case msg.req.files (Note: the name msg refers to different objects)
msg.req.files.constructor is 'undefined' and therefore does not have a property 'name' - javascript throws an exception rather than return 'undefined' like it would for a defined object.
The text was updated successfully, but these errors were encountered: