javascript - async function declaration expects ';' in Internet Explorer -
i have async function declaration works on chrome , firefox, gives following error in internet explorer.
script1004: expected ';'
file: javascriptfile.js, line: 5, column 7
this simplified version these 2 function @ top of file, , still fails on internet explorer.
function sleep (ms) { return new promise(function (resolve) { settimeout(resolve, ms) }) } async function begging (help) { await sleep(1000) console.log('please') }
i can not seem find not being able declare async functions in internet explorer. appreciate @ all, i'm not sure next in order figure out.
internet explorer not support async
functions, , never natively will. main drawback of using new javascript features lack of support.
Comments
Post a Comment