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

Error thrown when trying to get the number value of a boolean #74

Closed
JLRishe opened this issue Jul 18, 2017 · 0 comments
Closed

Error thrown when trying to get the number value of a boolean #74

JLRishe opened this issue Jul 18, 2017 · 0 comments

Comments

@JLRishe
Copy link
Collaborator

JLRishe commented Jul 18, 2017

The following throws an error: this.num is not a function:

var num = xpath.parse('"a" = "b"').evaluateNumber();

There is an incorrect method name used in XBoolean.prototype.numberValue(). This will also cause substring() to throw an error if the second or third argument is a boolean value:

var num = xpath.select('substring("hello", 1, "a" = "b")');
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