Sequence points can no longer be cleared when using deferred reading mode #694
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a regression introduced by #686. When using the deferred reading mode, if you clear the sequence points of a method, those will be read again from the source file on writing.
Here's a repro:
This prints the following on v0.11.3:
It prints the expected result on v0.11.2, or if you set
ReadingMode = ReadingMode.ImmediateinReaderParameters:I'm not entirely sure what the proper fix would be here. Maybe an additional flag is needed to tell if debug information has been read, so the status does not depend on sequence points.
/cc @thaystg FYI
@ltrzesniewski good catch. Could you submit a failing test? Thank you!
If you need to revert it's okay for me I did a workaround on wasm debugger side.
Cool, let's do that then.
Fixed in master. Thanks!