| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Fixes Promise.finally to conform to the ES spec: when the onFinally callback throws or returns a rejected promise, the resulting error now overrides the original fulfillment value or rejection reason. Also handles non-function arguments by delegating to .then.
Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/lualib/Promise.ts | Rewrites finally to use the TC39 polyfill pattern so onFinally errors override the original outcome. |
| test/unit/builtins/promise.spec.ts | Adds tests verifying that throws / rejected returns from finally override prior value or reason. |
| test/unit/builtins/async-await.spec.ts | Adds async/await tests exercising re-throws and finally overriding catch results. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary