-
Bug
-
Resolution: Fixed
-
Critical
-
11.2.0.0
-
Security Level: Jimmy
-
None
Steps to Reproduce
<charts id="chart" type="line" title="Season Average Temperature"/> <script defer="true" src="promise.js"/>
- run the page in Firefox and Safari
- open developer tool > console tab
Current Result
Uncaught TypeError: (new Promise(...)).finally is not a function
Expected Result
no error
Debug Information
- Chrome doesn't produce the error.
- a real use case: a user includes a 3rd-party js library that calls Promise.finally, and it produces the error in the browser developer tool console. Because canvg.js override Promise.prototype, so there is no finally() available.
Workaround
- put an empty canvg.js in the below path to override existing canvg.js in zkcharts.jar
- relates to
-
ZKCHARTS-151 highcharts doesn't require ext/lib by default, cause compatibility issues
- Closed