Fixed 'TypeError: Promise.resolve is not a constructor' in Firefox

The error is thrown in Firefox by simply opening test.html.
For some reason it's not thrown in Chromium.