Commit Graph
1 Commits
Author SHA1 Message Date
黄健铭andClaude Opus 5.5 33fedc2e68 当前操作者改用AsyncLocalStorage,异步调用不再串号
- ledger.scope() 改为 AsyncLocalStorage.run,store 按台账实例区分;actor/memberFilter 改为读写当前作用域的访问器,作用域外读写实例默认值,仍为可枚举自有属性
- asActor() 对外行为不变,仍由 Proxy 把每次方法调用包进 scope
- 新增 test/actor-scope.test.js:嵌套、抛错恢复、作用域内赋值、多实例隔离,以及旧实现下会失败的交错异步流程

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 13:04:33 -08:00