jstty / beelzebub

One hell of a Task Master!

Home Page:http://beelzebub.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

globalVars not default to empty Object

jstty opened this issue · comments

commented
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');
commented

f807adb resolves the issue