There was an error while loading. Please reload this page.
1 parent 14cfc68 commit d7e0a31Copy full SHA for d7e0a31
1 file changed
lib/zone.ts
@@ -1267,7 +1267,13 @@ const Zone: ZoneType = (function(global: any) {
1267
}
1268
1269
if(nativeMicroTaskQueuePromise){
1270
-nativeMicroTaskQueuePromise[symbolThen](drainMicroTaskQueue);
+letnativeThen=nativeMicroTaskQueuePromise[symbolThen];
1271
+if(!nativeThen){
1272
+// native Promise is not patchable, we need to use `then` directly
1273
+// issue 1078
1274
+nativeThen=nativeMicroTaskQueuePromise['then'];
1275
+}
1276
+nativeThen.call(nativeMicroTaskQueuePromise,drainMicroTaskQueue);
1277
}else{
1278
global[symbolSetTimeout](drainMicroTaskQueue,0);
1279
0 commit comments