Repository navigation
Commit 2bb9679
committed
test: real-Effect gates for the sink-based escape rules
Positive (must remove writeOne, fail on the current allow-list):
- run_options: runPromise with an onFiberStart that ignores the Fiber.
- retained_fiber: forkChild + Fiber.join, Fiber kept after its scope.
Retention (must keep every method; pass today only through global
bailouts, and miscompile when those are disabled):
- internals_destructuring: `const { mapUnsafe } = context`.
- enumeration: Object.values(context) finds the service Map.
- enumeration_alias: the same through `const values = Object.values`.
- dynamic_name: `context[["map", "Unsafe"].join("")]`.
- json_literal: JSON.stringify({ context }, replacer) reaches the
service through Context.toJSON, despite the inline literal.
The live Context comes from Effect.withFiber inside the provided scope.1 parent d33d53d commit 2bb9679
23 files changed
Lines changed: 32976 additions & 0 deletions
File tree
- crates/rolldown/tests/rolldown/tree_shaking/effect_service_real
- dynamic_name
- enumeration_alias
- enumeration
- internals_destructuring
- json_literal
- retained_fiber
- run_options
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments