custom module: prevent errors when failing to run the module

This commit is contained in:
bordun 2018-03-27 09:01:19 +02:00
parent 8726e9a624
commit e52aa85020
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
- custom module
- expose `setInterval`
- prevent errors when failing to run the module
## 0.28.1

View file

@ -145,6 +145,7 @@ var customModule = (function(){
mod = vm.runInContext(file, vm.createContext(context))
} catch(err) {
console.log(err)
return false
}
return mod