scratch-vm/test/fixtures/dispatch-test-service.js
Christopher Willis-Ford b4c0cfe940 Refactor common code in {central,worker}-dispatch
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.
2017-08-09 17:30:00 -04:00

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;