ol-th / pdf-img-convert.js

Simple node package to convert a PDF into images.
MIT License
166 stars 38 forks source link

Operator precedence issue #6

Closed friksa closed 3 years ago

friksa commented 4 years ago

I think operator precedence will execute ! before instanceof... and line 92 should be:

  else if (!(pdf instanceof Uint8Array)) {

instead of

  else if (!pdf instanceof Uint8Array) {
ol-th commented 3 years ago

Thanks for this! I'll make this change with others on the next release.