### Changed

- web worker detection. #44
This commit is contained in:
Yi-Cyuan Chen
2026-07-20 11:07:48 +08:00
parent 801a004b4f
commit 114d18e574
27 changed files with 1555 additions and 1213 deletions
+2 -1
View File
@@ -103,12 +103,13 @@ require('./worker-test.js');
delete require.cache[require.resolve('./worker-test.js')];
// cover webworker
WorkerGlobalScope = function () { }
JS_MD5_NO_WINDOW = true;
JS_MD5_NO_NODE_JS = true;
WORKER = './worker.js';
SOURCE = '../src/md5.js';
window = global;
self = global;
self = new WorkerGlobalScope();
Worker = function (file) {
require(file);