scratch-vm/test/fixtures/dispatch-test-service.js
Christopher Willis-Ford 84ac66d6e5 Fix exception message
2017-07-21 13:23:52 -07:00

20 lines
368 B
JavaScript

class DispatchTestService {
returnFortyTwo () {
return 42;
}
doubleArgument (x) {
return 2 * x;
}
throwException () {
throw new Error('This is a test exception thrown by DispatchTest');
}
close () {
// eslint-disable-next-line no-undef
self.close();
}
}
module.exports = DispatchTestService;