bwip-js icon indicating copy to clipboard operation
bwip-js copied to clipboard

Code 128 internal error when unused ^NNN under some conditions

Open semireg opened this issue 3 years ago • 10 comments

There seems to be an issue when unrecognized (unparsed?) ^NNN are encountered, but not "enabled" via parse option(s). This should probably fail gracefully by just rendering the ^NNN. I wrote "options" plural because I thought I could trigger this error with a different combination of parse/parsefnc... but looks like this is all I can reproduce for now.

TypeError: undefined is not an object (evaluating 's.length')
$P@http://bwip-js.metafloor.com/demo/dist/bwip-js-min.js:41:2708
http://bwip-js.metafloor.com/demo/dist/bwip-js-min.js:41:69701
http://bwip-js.metafloor.com/demo/dist/bwip-js-min.js:41:716622
Render@http://bwip-js.metafloor.com/demo/dist/bwip-js-min.js:41:718600
ToCanvas@http://bwip-js.metafloor.com/demo/dist/bwip-js-min.js:41:717027
render@http://bwip-js.metafloor.com/demo/demo.html:160:18

Image from demo.

2020-08-18 at 8 56 PM

semireg avatar Aug 19 '20 02:08 semireg