allow passing false and 0 as message data

This commit is contained in:
Brandon Nozaki Miller 2016-03-16 02:42:21 -07:00
parent 456cf3f312
commit e53b83b6d7

View file

@ -7,7 +7,7 @@ const parser={
};
function formatData(message){
if(!message.data){
if(!message.data && message.data!==false && message.data!==0)){
message.data={};
}
if(message.data['_maxListeners']){