Skip to content

v8 boundary: unhandled promise rejection hook #617

@cs01

Description

@cs01

V8 has SetPromiseRejectCallback. Currently unhandled rejections in pragma code vanish silently.

Ask

Wire V8 promise-reject callback to a thread-local cs_v8_last_error. Pragma wrapper checks after eval and propagates.

Est

~50 LOC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:plannedTracked, not scheduledv8-escape-hatchPragma / libnode / JSHandle marshalling work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions