scratch-vm/test/fixtures/dispatch-test-service.js

21 lines
368 B
JavaScript
Raw Normal View History

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