Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
11
scratch-vm/test/fixtures/dispatch-test-worker.js
vendored
Normal file
11
scratch-vm/test/fixtures/dispatch-test-worker.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const dispatch = require('../../src/dispatch/worker-dispatch');
|
||||
const DispatchTestService = require('./dispatch-test-service');
|
||||
const log = require('../../src/util/log');
|
||||
|
||||
dispatch.setService('RemoteDispatchTest', new DispatchTestService());
|
||||
|
||||
dispatch.waitForConnection.then(() => {
|
||||
dispatch.call('test', 'onWorkerReady').catch(e => {
|
||||
log(`Test worker failed to call onWorkerReady: ${JSON.stringify(e)}`);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user