]> git.kaiwu.me - njs.git/commit
Promise: fixed the catch handler for Promise.prototype.finally().
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 3 Nov 2020 17:14:33 +0000 (20:14 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 3 Nov 2020 17:14:33 +0000 (20:14 +0300)
commitef696d43f036f6722838f7929007b494dd215a40
treec543ce6297e6f8031c88aa9366cca00379e7085e
parent10d9f2d77140d48c3ab2781137bea0013d7b3291
Promise: fixed the catch handler for Promise.prototype.finally().

By spec, the catch handler for the .finally() should always return an
exception.

The issue was introduced in 61bf7a31e685.
src/njs_promise.c
test/js/promise_then_throw_finally_catch.js [new file with mode: 0644]
test/njs_expect_test.exp