up.layer.accept() and up.layer.dismiss() would return a fulfilled promise, despite both being sync functions.
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js are not considered breaking changes.
See our upgrading guide for details.