-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[wasm][coreclr] Fix browser-wasm library tests broken by webcil V1 version bump #126698
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,7 +79,7 @@ private unsafe bool ReadHeader() | |
| header.PeDebugSize = BinaryPrimitives.ReverseEndianness(header.PeDebugSize); | ||
| } | ||
| if (header.Id != WebcilConstants.WEBCIL_MAGIC | ||
| || header.VersionMajor != WebcilConstants.WC_VERSION_MAJOR | ||
| || header.VersionMajor != 0 // WASM-TODO: add webcil V1 support | ||
| || header.VersionMinor != WebcilConstants.WC_VERSION_MINOR) | ||
|
Comment on lines
81
to
83
|
||
| { | ||
| return false; | ||
|
Comment on lines
81
to
85
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coding
0forVersionMajorhere works, but it introduces a magic number that’s now duplicated withWebcilReader. To keep this easier to update when v1 support is added, consider introducing a named constant in this project (e.g.,const ushort SupportedWebcilVersionMajor = 0) and using it in both reader and converter.