Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add support for unary + in mapping keys (0.4.x. compatibility) #2097

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

haltman-at
Copy link
Contributor

This PR allows mapping keys that begin with a unary + to work. Unary + isn't legal anymore, but it was legal prior to 0.4.18.

As you may recall, our system for recording mapping keys doesn't work if the outermost operation in the index expression is (on the bytecode level) a no-op. Obviously, that includes unary +. I didn't account for this earlier because I didn't realize it was legal in old versions. Well, it is, so I've accounted for it, in the same way I've accounted for other no-ops.

@haltman-at haltman-at requested a review from gnidan June 14, 2019 17:42
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 70.064% when pulling 680f9e9 on seethroughtheplus into ca18121 on develop.

@haltman-at haltman-at merged commit 3a38793 into develop Jun 15, 2019
@haltman-at haltman-at deleted the seethroughtheplus branch June 15, 2019 01:47
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.

3 participants