1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-17 01:42:41 +02:00

feat: assume native promises, remove promise option and workarounds (#7715)

BREAKING CHANGE: Removes support for Promise class option and assumes native Promise is available. Will break in older browsers or devices.
This commit is contained in:
Alex Barstow
2022-05-16 17:48:01 -04:00
committed by Pat O'Neill
parent f99ace0fba
commit dd1b478e4d
3 changed files with 53 additions and 82 deletions

View File

@ -5,12 +5,6 @@ import * as promise from '../../../src/js/utils/promise';
QUnit.module('utils/promise');
QUnit.test('can correctly identify a native Promise (if supported)', function(assert) {
// If Promises aren't supported, skip this.
if (!window.Promise) {
return assert.expect(0);
}
assert.ok(promise.isPromise(new window.Promise((resolve) => resolve())), 'a native Promise was recognized');
});