mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-04 08:15:20 +00:00
Skip test for OpenPGP.js inside an application worker in old Edge
Old Edge doesn't support crypto.getRandomValues inside a Worker.
This commit is contained in:
@@ -11,6 +11,9 @@ tryTests('Application Worker', tests, {
|
||||
function tests() {
|
||||
|
||||
it('Should support loading OpenPGP.js from inside a Web Worker', async function() {
|
||||
if (/Edge/.test(navigator.userAgent)) {
|
||||
this.skip(); // Old Edge doesn't support crypto.getRandomValues inside a Worker.
|
||||
}
|
||||
try {
|
||||
eval('(async function() {})');
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user