mozilla/pdf.js — pull request #5480 by CodingFabian (2014-11-09 12:55:31+00:00)
Title: Created polyfill for EvenOdd winding rule.

There are browsers which do not support a winding rule param to fill,
clip and isPointInPath. This polyfill tests for it, and replaces the
methods so that they ignore the param in case of exceptions.

This allows not to catch the exception in canvas.js which would prevent
optimization by JS engines.

This fixes #5458