javascript error differences on iphone 4 vs 6
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
I had an array in javascript that was causing an error only on iphone 6 and 6 plus and not 4s or 5.
My webview javascripts wouldn't run but also gave no errors. window.onError did not catch anything.
The error was an extra comma in this statement
array=new Array("1","2",);
It took a long time to track down. Do you know why the errors would be different for different iphones? Is the webview different depending on the phone or version of ios?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns JavaScript in an iPhone webview and the trailing-comma array statement shown in the issue. Start by comparing the webview behavior on the listed iPhone models or iOS versions; done would require a reproducible explanation of the differing errors or a clearly scoped fix, neither of which is specified here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100