chartjs / chartjs/Chart.js

Error on IPHONE 5s running 12.9.7

Open
#11,724 6 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

![Screenshot 2024-03-28 at 14 19 24](https://github.com/chartjs/Chart.js/assets/165296133/ea8e8555-56e1-4b02-b7fe-effae2d22bcb)
I dont know if its to do with support for the static keyword but apparently that support was added IOS 9 It works fine on later versions of IPHONES and IOS, I know its an old phone, so not the end of the earth.

### Current behavior

It generates a syntax error

### Reproducible sample

Sent screen shot of syntax error

### Optional extra steps/info to reproduce

[Error] SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list.

(anonymous function) (chart-full.js:3587)

the chart-full.js I expanded your min file as thats the only one I had, if you look at the screen shot hopefully you will recognise the code, I hope this helps

### Possible solution

_No response_

### Context

Just testing it on all the old phones I have available, it failed on an old one

### chart.js version

v4,4.2

### Browser name and version

Safari on IOS 12.9.7

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.