Skip to content

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

Open
@jdanyow

Description

@jdanyow

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);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions