const test = async () => { }; const obj = {a: 1, b: 1}; const {a, b} = obj; console.log(a, b, 'ok'); // how to: // cd to frontend // > ./node_modules/.bin/babel-node --presets es2015,es2017,stage-0 ./scripts/test-async-await.js