v8::Promise::Resolver rejection problem

13 views
Skip to first unread message

Юрий Соловьёв

unread,
Mar 12, 2018, 7:36:32 AM3/12/18
to v8-users
I'm trying to implement Promise-returning API for electron, and I have an issue where in case operation fails, rejection not being called.
It works perfectly fine in success case.
In case of failure, app just hangs there, but if you hit Ctrl+C, it prints the message and exits.

Is there anything additional needs to be done for rejection to work? I thought this should work mostly symmetrical with resolution case.


https://github.com/YurySolovyov/electron/blob/move-to-trash-task-runner/atom/common/api/atom_api_shell.cc#L90-L96
Reply all
Reply to author
Forward
0 new messages