@gendor
Can you use babel?
Using a random googled input:
class Waiter { async wait() { return await Promise.resolve(1); } } new Waiter() .wait() .then(alert); // 1
http://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEDqYEsAuBTATtA3gKGtSAngHbDQDuiSAFAJRa57RopICuaR-Fy0ACmgHsAtgggoAdMwgCQANxRUAjDQDcDAL7ZN2IijJxK6Wg3HdqNE0gAWKIlTAh0SVdAD0r6IqA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=6.26.0&envVersion=
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@gendor
Can you use babel?
Using a random googled input:
http://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEDqYEsAuBTATtA3gKGtSAngHbDQDuiSAFAJRa57RopICuaR-Fy0ACmgHsAtgggoAdMwgCQANxRUAjDQDcDAL7ZN2IijJxK6Wg3HdqNE0gAWKIlTAh0SVdAD0r6IqA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=6.26.0&envVersion=