For instance, Amazon throws this error (when asserts are enabled):
Vector2.js:256 Uncaught Error: Cannot normalize a zero-magnitude vector
at Vector2.normalized (Vector2.js:256)
at Cubic.getEndTangent (Cubic.js:361)
at Cubic.get endTangent [as endTangent] (Cubic.js:365)
at Subpath.addSegmentDirectly (Subpath.js:165)
at Subpath.addSegment (Subpath.js:187)
at Shape.addSegmentAndBounds (Shape.js:1744)
at Shape.js:596
at u (lodash-4.17.4.min.js:5)
at Function.ru (lodash-4.17.4.min.js:67)
at Shape.cubicCurveToPoint (Shape.js:595)
I saw another failure mode with assertions disabled, but cannot figure out which icon(s) it was for, where NaN are leaking into the path commands.
From https://github.com/phetsims/sherpa/issues/81.
These icons throw errors during Shape construction:
For instance,
Amazon
throws this error (when asserts are enabled):I saw another failure mode with assertions disabled, but cannot figure out which icon(s) it was for, where NaN are leaking into the path commands.