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:
committed by
Pat O'Neill
parent
f99ace0fba
commit
dd1b478e4d
@ -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');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user