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

"buffer" and "i" on line 413 undefined? #43

Open
jdanyow opened this issue Jan 25, 2021 · 0 comments
Open

"buffer" and "i" on line 413 undefined? #43

jdanyow opened this issue Jan 25, 2021 · 0 comments

Comments

@jdanyow
Copy link

jdanyow commented Jan 25, 2021

Looks like buffer and i on line 413 are undefined.

jsonparse/jsonparse.js

Lines 409 to 422 in b2d8bc6

proto.numberReviver = function (text) {
var result = Number(text);
if (isNaN(result)) {
return this.charError(buffer, i);
}
if ((text.match(/[0-9]+/) == text) && (result.toString() != text)) {
// Long string of digits which is an ID string and not valid and/or safe JavaScript integer Number
this.onToken(STRING, text);
} else {
this.onToken(NUMBER, result);
}
}

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