jstty / beelzebub

One hell of a Task Master!
http://beelzebub.io
Other
8 stars 4 forks source link

globalVars not default to empty Object #35

Closed jstty closed 7 years ago

jstty commented 7 years ago
let Beelzebub = require('beelzebub');
let bz = Beelzebub();

class MyTasks extends Beelzebub.Tasks {
    default () {
       var globalVars = this.$getGlobalVars() // will result return "null", it should be an empty object
       this.logger.log('globalVars:', globalVars);
   }
}
bz.add(MyTasks);
bz.run('MyTasks');
jstty commented 7 years ago

f807adb resolves the issue