r235 safari bug in service worker loader

Bugs will be moved here once resolved.

Post » Thu Sep 15, 2016 11:42 pm

Problem Description
The JS that's used in the service worker loader makes use of
Code: Select all
=>
which is supported only ES6. This isn't supported by Safari and Safari stops loading with the following error

Code: Select all
SyntaxError: Unexpected token '>'

at

.then(reg => console.log("Registered service worker on " + reg.scope))


Steps to Reproduce Bug
  • Export and HTML game
  • Load it in Safari (I'm using 9.1.3 on MacOS 10.11)

Observed Result
The game doesn't load due to a JS syntax error

Expected Result
The game should load.

Affected Browsers
  • Safari

Operating System and Service Pack
MacOS 10.11

Construct 2 Version ID
r235 beta
Last edited by foozmeat on Fri Sep 16, 2016 12:25 am, edited 1 time in total.
B
11
S
1
Posts: 4
Reputation: 483

Post » Thu Sep 15, 2016 11:44 pm

Just a followup, here's the compatibility chart for the arrow operator

http://caniuse.com/#feat=arrow-functions
B
11
S
1
Posts: 4
Reputation: 483

Post » Mon Sep 19, 2016 9:51 am

hey Foozmeat, I think I may be experiencing a similar issue, I'm kinda reassured that someone else has seen it! The resource just doesn't load :(

Doesn't seem to have the same issue for iOS 10, there I was thinking this is a secure hosting issue!

Have emailed the lovely folk at [email protected]

Hopefully this will get fixed soon!

Shay

Image
B
7
S
1
Posts: 10
Reputation: 554

Post » Thu Sep 22, 2016 6:24 pm

Same here:

Image
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Fri Sep 23, 2016 1:35 pm

Oops, fixed in the next build, thanks.
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,390

Post » Fri Sep 23, 2016 3:33 pm

Thanks Ashley, : ) any indication on when the next build is coming. Also this isn't what's causing this other issue right? update-on-cordova-apps-on-ios-10_t182168
B
7
S
1
Posts: 10
Reputation: 554


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests