Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Don't COW the internal this constant #132

Open
wants to merge 1 commit into
base: 1.0-dev
Choose a base branch
from

Conversation

bdunderscore
Copy link
Collaborator

Certain ternary expressions could result in COWing the internal this
constant unnecessarily. Mark this as constant to avoid this.

Because this hides another bug, I've added a (currently failing) test that
detects the more general case of inappropriate COWing across ternary
operators. I've not added it to the scene because I'm sure the merge will
be a nightmare (and it's failing until some of Merlin's working branch
changes land)

Certain ternary expressions could result in COWing the internal `this`
constant unnecessarily. Mark `this` as constant to avoid this.

Because this hides another bug, I've added a (currently failing) test that
detects the more general case of inappropriate COWing across ternary
operators. I've not added it to the scene because I'm sure the merge will
be a nightmare (and it's failing until some of Merlin's working branch
changes land)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant