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(compile): correct read length for transpiled typescript files #27301

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Dec 10, 2024

Extracted out of https://github.com/denoland/deno/pull/27296/files

It's hard to test for this, but a test for this is in that other PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted in the PR description, I don't have a test for this in this PR because it's hard to reproduce, but there is a scenario in another PR I'm going to land that reproduces it.

}
VfsFileSubDataKind::ModuleGraph => {
virtual_file.module_graph_offset = offset;
virtual_file.module_graph_offset = offset_and_len;
Copy link
Member Author

@dsherret dsherret Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This data length was previously not being stored.

@dsherret dsherret requested a review from bartlomieju December 10, 2024 00:53
@dsherret dsherret merged commit 94c7653 into denoland:main Dec 10, 2024
17 checks passed
@dsherret dsherret deleted the fix_compile_module_graph_offset branch December 10, 2024 01:11
bartlomieju pushed a commit that referenced this pull request Dec 11, 2024
…7301)

Extracted out of https://github.com/denoland/deno/pull/27296/files

It's hard to test for this, but a test for this is in that other PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants