gree / gree/unity-webview

javascript error differences on iphone 4 vs 6

Open
#210 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.