You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in ESNext, Promise seems to be a first order object, and does not exist as a property of window or Node. As such, if looking at a project in TypeScript with ESNext & DOM type libraries, window.Promise causes an immediate syntax error which will not transpile. certainly, this code does not run under jsdom in ESNext in its current form.
My brief investigation of the spec leads me to believe that the ESNext DOM type libraries are correct in this implementation.
as per comments in #810, currently the Promise global will refer to the Dexie.Promise in the promise module.
The text was updated successfully, but these errors were encountered:
in ESNext, Promise seems to be a first order object, and does not exist as a property of window or Node. As such, if looking at a project in TypeScript with ESNext & DOM type libraries, window.Promise causes an immediate syntax error which will not transpile. certainly, this code does not run under jsdom in ESNext in its current form.
My brief investigation of the spec leads me to believe that the ESNext DOM type libraries are correct in this implementation.
as per comments in #810, currently the Promise global will refer to the Dexie.Promise in the promise module.
The text was updated successfully, but these errors were encountered: