-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I'm trying to use this module to work around a limitation in WebStorm: it doesn't allow top-level await.
aawait.mjs
import aawait from 'deasync-promise';
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
debugger;
aawait(sleep(1000));Note how the repl> prompt turns into debug>.
In WebStorm, this manifests through a SIGSEV:
Metadata
Metadata
Assignees
Labels
No labels

