Skip to content
New issue

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

ptr.deleteList does not return when trying to delete something that's not a list. #66

Closed
cristianvasquez opened this issue Jul 13, 2022 · 1 comment

Comments

@cristianvasquez
Copy link

cristianvasquez commented Jul 13, 2022

ptr.deleteList does not return when trying to delete something that's not a list.

Example:

const parse = require('./support/parse.js')
const rdf = require('./support/factory')

const data = `
<http://buggy> <https://cube.link/view/argument> "2019-01-01T23:00:00.000Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
`

async function main () {
  const cf = await parse(data)
  const ptr = cf.node(rdf.namedNode('http://buggy'))
  ptr.deleteList(rdf.namedNode('https://cube.link/view/argument'))
}

main()

Perhaps some checking is required?

@cristianvasquez
Copy link
Author

Fix at #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant