JavaScript async function not executing in module

According to the table Firefox 54 supports async / await, but in the following code, the async function will never be executed, even though it doesn't even wait for anything. Incorrect compatibility table or is there a bug in the code?

<html>
<body>
<script type="module">
function helloSync()
{
 alert("sync: This alert always happens");
}

async function helloAsync()
{
 alert("async: This alert never happens");
}

helloSync();
helloAsync();
</script>
</body>
</html>
      

Run codeHide result


+3


source to share





All Articles