Skip to content

Crashes the repl #1

@dandv

Description

@dandv

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));

image

Note how the repl> prompt turns into debug>.

In WebStorm, this manifests through a SIGSEV:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions