the exception i'm getting is: "Array length must be a positive integer of safe magnitude."
I've done some debugging and found out that it's failing while encoding "250000000" in the _flush() function
In this function for 'left' and 'right' alignment we don't have a check for indent which is getting negative in this case
if (this._state.align == 'right') {
this._queued.unshift((new Array(indent)).fill(0x20));
}
Some other observations: if the alignment if center, it works fine. Also if i use a plain text string instead of bold (encoder callback function) it works fine.
I'm trying to print a table like this:
the exception i'm getting is: "Array length must be a positive integer of safe magnitude."
I've done some debugging and found out that it's failing while encoding "250000000" in the _flush() function In this function for 'left' and 'right' alignment we don't have a check for indent which is getting negative in this case
Some other observations: if the alignment if center, it works fine. Also if i use a plain text string instead of bold (encoder callback function) it works fine.
It should ideally wrap it to the next line