Skip to content

Commit 1889a85

Browse files
committed
Fix ADB connection error caused by Rolldown bundler TDZ bug
Rolldown (Vite 8's bundler) collapses `const x = await ...; this.y = x` into `this.y = await ...`, which moves the `this` access before `await`. In WrapReadableStream's constructor, this happens inside a callback called during super(), causing a TDZ violation: "Must call super constructor in derived class before accessing 'this'" Patch @yume-chan/stream-extra to use .then() instead of await+assignment in WrapReadableStream, keeping `this` access inside the callback where Rolldown cannot collapse it.
1 parent fbe4069 commit 1889a85

4 files changed

Lines changed: 1043 additions & 51 deletions

File tree

0 commit comments

Comments
 (0)