Service Worker doesn't work because dart2js doesn't understand Promise #22862
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
library-html
library-html-worker
Issues related to Web Workers and Service Workers
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This issue was originally filed by [email protected]
What steps will reproduce the problem?
What is the expected output? What do you see instead?
If you launch in dartium with the js Service Worker it should work.
If you launch in dartium with the dart Service Worker you get an error : AbortError: The Service Worker installation failed.
If you launch in chrome with the js Service Worker you get the error : undefined is not a function on line 13
Here the register method inside ServiceWorker return normally a Future<dynamic> but instead it return a Null Object.
If you launch in chrome with the dart Service Worker your get two error :
I use sdk version 1.8.5 on a windows_x64
Attachment:
testSW.zip (370.29 KB)
The text was updated successfully, but these errors were encountered: