fix: 补 Promise species 派生与 finally 语义,静态 resolve 守卫

This commit is contained in:
2026-09-24 10:41:15 +00:00
parent 0895ba2645
commit 1613390a49
6 changed files with 371 additions and 46 deletions
+4
View File
@@ -91,6 +91,10 @@ const DELEGATED_PROP: &str = "__oxide_delegated__";
const ON_FINALLY_PROP: &str = "__oxide_on_finally__";
/// finally 处理器上区分 reject 角色的属性名。
const FINALLY_REJECT_PROP: &str = "__oxide_finally_reject__";
/// finally 处理器上存派生构造器的属性名。
const FINALLY_CTOR_PROP: &str = "__oxide_finally_ctor__";
/// finally 直通 thunk 上存透传值/拒绝原因的属性名。
const FINALLY_THUNK_VALUE_PROP: &str = "__oxide_finally_thunk_value__";
/// 能力 executor 上捕获 resolve/reject 的属性名。
const CAP_RESOLVE_PROP: &str = "__oxide_cap_resolve__";
const CAP_REJECT_PROP: &str = "__oxide_cap_reject__";