mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
20 lines
368 B
JavaScript
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;
|