Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(es/minifier): Improve DCE #9853

Merged
merged 12 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test refs
  • Loading branch information
kdy1 committed Jan 8, 2025
commit 7c1842a8332c8de32c66f85bfa866c98fd69608f
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,13 @@ function copyBytes(src, dst, off = 0) {
return src.byteLength;
}
const DEFAULT_BUF_SIZE = 4096;
class PartialReadError extends Deno.errors.UnexpectedEof {
name = "PartialReadError";
partial;
constructor(){
super("Encountered UnexpectedEof, data only partially read");
}
}
class AbstractBufBase {
buf;
usedBufferBytes = 0;
Expand Down
7 changes: 7 additions & 0 deletions crates/swc_bundler/tests/fixture/deno-9591/output/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,13 @@ function copyBytes(src, dst, off = 0) {
return src.byteLength;
}
const DEFAULT_BUF_SIZE = 4096;
class PartialReadError extends Deno.errors.UnexpectedEof {
name = "PartialReadError";
partial;
constructor(){
super("Encountered UnexpectedEof, data only partially read");
}
}
class AbstractBufBase {
buf;
usedBufferBytes = 0;
Expand Down
Loading