|
@@ -1,3 +1,4 @@
|
|
1
|
+import Iterator from 'es6-iterator';
|
1
|
2
|
import BackgroundTimer from 'react-native-background-timer';
|
2
|
3
|
import 'url-polyfill'; // Polyfill for URL constructor
|
3
|
4
|
|
|
@@ -98,6 +99,18 @@ function _visitNode(node, callback) {
|
98
|
99
|
global.addEventListener = () => {};
|
99
|
100
|
}
|
100
|
101
|
|
|
102
|
+ // Array.prototype[@@iterator]
|
|
103
|
+ //
|
|
104
|
+ // Required by:
|
|
105
|
+ // - for...of statement use(s) in lib-jitsi-meet
|
|
106
|
+ const arrayPrototype = Array.prototype;
|
|
107
|
+
|
|
108
|
+ if (typeof arrayPrototype['@@iterator'] === 'undefined') {
|
|
109
|
+ arrayPrototype['@@iterator'] = function() {
|
|
110
|
+ return new Iterator(this);
|
|
111
|
+ };
|
|
112
|
+ }
|
|
113
|
+
|
101
|
114
|
// document
|
102
|
115
|
//
|
103
|
116
|
// Required by:
|