[pulsar-next] MarkerLayer
tries to delete a property of a frozen object
#6
Labels
bug
Something isn't working
MarkerLayer
tries to delete a property of a frozen object
#6
Thanks in advance for your bug report!
What happened?
I'm investigating test failures in the spec suite for PulsarNext, starting with
TextEditor
(because I am a masochist).One failure seems to be the result of a long-standing bug that may only be causing a test failure now because of a difference in V8 — but that's just my current theory:
MarkerLayer::getSnapshot
is called; it creates an object containing some state and freezes it.MarkerLayer::deserialize
iterates over those frozen objects and callsdelete markerState.range
on each one before creating a new range.Since the code seems to work just fine even though the deletion fails, the fix is not to attempt the deletion in the first place!
I'll likely fix this with a PR, but I'm noting it here so I don't forget.
Pulsar version
PulsarNext (Electron 30.0.9)
Which OS does this happen on?
❓ Other(Please specify in the OS details field below)
OS details
any
Which CPU architecture are you running this on?
Apple M-series
What steps are needed to reproduce this?
Run the
TextEditor -> when the editor is deserialized -> it restores selections and folds based on markers in the buffer
spec.Additional Information:
No response
The text was updated successfully, but these errors were encountered: