convert wechaty-bro.js to plain old javascript syntax #60 !97
Created by: cherry-geqi
When npm start
with DEFAULT_HEAD set to "phantomjs", it throws WARN PuppetWebBrowser execute() exception: {"errorMessage":"Unexpected token ','","request"...
.
After debugging for hours I found that phantomjs, even the latest version, does not know es6 syntax such as arrow function.
Converting to es5 using babeljs.io online tool solves this problem.