I am writing a code to check if the browser is supported or not.
var sendMsg:{
sendInfo:function(){ .. }
};
try{
let a = async function(){
return 10;
};
async function*E(...e){ }
}catch(e_){
alert('Please update browser');
alert(JSON.stringify(sendMsg.sendInfo().obj,null,4) );
}
I get script error SCRIPT1004: semicolon ; expected script error on windows 7, IE 11
Also this async* fails to load the page. on chrome 60.
I tried to add polyfills:
<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=es2016"></script>
but didn't helped.
On top of that, i never get the alert message : Please update browser
(as given in the catch statement).