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
What specific section or headline is this issue about?
List of errors
What information was incorrect, unhelpful, or incomplete?
Missing error message
What did you expect to see?
"TypeError: Cannot convert undefined or null to object", which is the full message on NodeJS
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
// fine([].sort)();(1&&[].sort)();// Uncaught TypeError: Cannot convert undefined or null to object// at sort (<anonymous>)lets=[].sort;s();// Uncaught TypeError: Cannot convert undefined or null to object// at sort (<anonymous>)
From what I understand, this happens because the this binding on [] is reset to undefined
In Firefox the error message is "TypeError: can't convert undefined to object", so that would be what we document, but yes we are missing this. It can happen any time undefined or null is being coerced to an object. I am closing this though because we have a whole project for completing the errors reference: mdn/mdn#505 thanks for bringing this up!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors
What specific section or headline is this issue about?
List of errors
What information was incorrect, unhelpful, or incomplete?
Missing error message
What did you expect to see?
"
TypeError
: Cannot convertundefined
ornull
to object", which is the full message on NodeJSDo you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
From what I understand, this happens because the
this
binding on[]
is reset toundefined
MDN metadata
Page report details
en-us/web/javascript/reference/errors
The text was updated successfully, but these errors were encountered: