RESOLVED INVALID 158106
Safari on iOS 9.3.2 - TypeError, not a function, undefined, when attempting to call a custom method on an ES6 class extended from Array
https://bugs.webkit.org/show_bug.cgi?id=158106
Summary Safari on iOS 9.3.2 - TypeError, not a function, undefined, when attempting t...
Erik Nordstrøm
Reported 2016-05-25 19:12:38 PDT
Created attachment 279851 [details] HTML file to reproduce problem Calling a custom method on an ES6 class extended from Array results in TypeError, stating that the function is undefined. Tested in: - Safari on iOS 9.3.2 - Firefox 46.0.1 on Fedora 23 - Chrome Dev 52.0.2739.3 on Android 4.2.2 Steps to reproduce: Serve attached HTML file with a web server, then open it in Safari on iOS 9.3.2. Observe that TypeError is thrown. Expected outcome: Calling the custom method should have worked. Actual outcome: Test fails with TypeError, undefined, in Safari on iOS 9.3.2, works in the other two browsers tested.
Attachments
HTML file to reproduce problem (1.02 KB, text/html)
2016-05-25 19:12 PDT, Erik Nordstrøm
no flags
Screenshot of test working in Chrome Dev on Android (29.76 KB, image/png)
2016-05-25 19:13 PDT, Erik Nordstrøm
no flags
Screenshot of devtools connected to Chrome Dev on Android (27.30 KB, image/png)
2016-05-25 19:14 PDT, Erik Nordstrøm
no flags
Screenshot of test failing in Safari on iOS 9.3.2 (38.06 KB, image/png)
2016-05-25 19:15 PDT, Erik Nordstrøm
no flags
Screenshot of devtools connected to Safari on iOS 9.3.2 (21.32 KB, image/png)
2016-05-25 19:16 PDT, Erik Nordstrøm
no flags
Erik Nordstrøm
Comment 1 2016-05-25 19:13:55 PDT
Created attachment 279852 [details] Screenshot of test working in Chrome Dev on Android
Erik Nordstrøm
Comment 2 2016-05-25 19:14:51 PDT
Created attachment 279853 [details] Screenshot of devtools connected to Chrome Dev on Android
Erik Nordstrøm
Comment 3 2016-05-25 19:15:36 PDT
Created attachment 279854 [details] Screenshot of test failing in Safari on iOS 9.3.2
Erik Nordstrøm
Comment 4 2016-05-25 19:16:50 PDT
Created attachment 279855 [details] Screenshot of devtools connected to Safari on iOS 9.3.2
Yusuke Suzuki
Comment 5 2016-05-26 00:26:12 PDT
(In reply to comment #4) > Created attachment 279855 [details] > Screenshot of devtools connected to Safari on iOS 9.3.2 What happens in Safari Technology Preview 4?
Yusuke Suzuki
Comment 6 2016-05-26 00:35:32 PDT
I've just tested on Safari TP4 and "All is well in browser land ^_^" is shown. So closing this issue, thank you for your report :)
Note You need to log in before you can comment on or make changes to this bug.