Skip to content

Commit

Permalink
fix: allow diag output to deal with integers outside of safe range
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 19, 2022
1 parent 9594b16 commit 5d4ed2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diagnostic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const utf8Decoder = new TextDecoder()
* @param {number} [width]
*/
function * tokensToDiagnostic (inp, width = 100) {
const tokeniser = new Tokeniser(inp, { retainStringBytes: true })
const tokeniser = new Tokeniser(inp, { retainStringBytes: true, allowBigInt: true })
let pos = 0
const indent = []

Expand Down

0 comments on commit 5d4ed2c

Please sign in to comment.