Commit 08ad68a
committed
feat: Implement Promise.finally method and refactor Promise module
- Add js_promise.rs module, separating Promise code from core.rs
- Implement Promise.prototype.finally method with callback execution
- Fix parser to allow reserved keywords as property names (support obj.finally() syntax)
- Improve error handling with new JSError::Throw variant
- Unify evaluate_script function, remove evaluate_script_async
- Add Promise.finally test case
- Fix function call references in async tests
- Improve Promise rejection error message formatting1 parent a2ebbd5 commit 08ad68a
File tree
9 files changed
+735
-728
lines changed- src
- tests
9 files changed
+735
-728
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
Large diffs are not rendered by default.
0 commit comments