You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/emscripten/pre.js

10 lines
314 B

// stub importScripts for the faulty detection of web worker env
if (typeof importScripts === 'undefined'
&& typeof WorkerGlobalScope !== 'undefined'
&& this instanceof WorkerGlobalScope
) {
this.importScripts = function () {
throw new Error('importScripts is a stub');
};
}