mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
b4c0cfe940
Central dispatch and worker dispatch share most of their code now by inheriting from a new shared dispatch class. Also, the format of passed messages has been altered to make it easier to understand in a debugger.
15 lines
279 B
JavaScript
15 lines
279 B
JavaScript
class DispatchTestService {
|
|
returnFortyTwo () {
|
|
return 42;
|
|
}
|
|
|
|
doubleArgument (x) {
|
|
return 2 * x;
|
|
}
|
|
|
|
throwException () {
|
|
throw new Error('This is a test exception thrown by DispatchTest');
|
|
}
|
|
}
|
|
|
|
module.exports = DispatchTestService;
|