mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Async/await and new function bind syntax support
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"breakConfig": true
|
||||
}
|
13
scripts/test-async-await.js
Normal file
13
scripts/test-async-await.js
Normal 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
|
Reference in New Issue
Block a user