We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hasOwnProperty
The bug is pretty clear: a node named hasOwnProperty will make the this._nodes.hasOwnProperty(...) calls fail.
this._nodes.hasOwnProperty(...)
graphlib/lib/graph.js
Line 195 in 19cd7c0
As seen in this little big of JS trivia:
const _nodes = { hasOwnProperty: "hi" }; _nodes.hasOwnProperty("anything"); // Uncaught TypeError: _nodes.hasOwnProperty is not a function
Fix: should be Object.hasOwn(this._nodes, ...). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn#problematic_cases_for_hasownproperty
Object.hasOwn(this._nodes, ...)
The text was updated successfully, but these errors were encountered:
Fixing this here and in Dagre
#202
Sorry, something went wrong.
No branches or pull requests
The bug is pretty clear: a node named
hasOwnProperty
will make thethis._nodes.hasOwnProperty(...)
calls fail.graphlib/lib/graph.js
Line 195 in 19cd7c0
As seen in this little big of JS trivia:
Fix: should be
Object.hasOwn(this._nodes, ...)
. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn#problematic_cases_for_hasownpropertyThe text was updated successfully, but these errors were encountered: