Async/await and new function bind syntax support

This commit is contained in:
SleepWalker
2017-01-14 21:38:38 +02:00
parent bdbc34b163
commit ca7c0ed94c
5 changed files with 59 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
{
"breakConfig": true
}

View File

@@ -0,0 +1,13 @@
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