Skip to content

alasql.promise over a file source never settles when a user function throws #3155

Backlog

Description

@mathiasrw
// j.json holds [{"a":1,"b":1},{"a":2,"b":2}]
alasql.fn.boom = () => { throw new Error('boom'); };
await alasql.promise('SELECT boom(a) FROM JSON("j.json")');

The promise never settles, and boom is thrown as an uncaught exception.

It should reject with boom, as it does over a table.

Fixed by #2652.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions