Skip to content

Always pop pushed elements from the stack#1011

Closed
kevinsawicki wants to merge 1 commit intojashkenas:masterfrom
kevinsawicki:always-pop
Closed

Always pop pushed elements from the stack#1011
kevinsawicki wants to merge 1 commit intojashkenas:masterfrom
kevinsawicki:always-pop

Conversation

@kevinsawicki
Copy link

Previously the constructor checks returned early which would prevent the most recently pushed elements from being popped from the stacks.

Now result is set to false so the the pop lines are still reached after the constructor checks are done.

Previously the constructor checks returned early which would
prevent the most recently pushed elements from being popped from
the stacks.

Now result is set to false so the the pop lines are still reached
after the constructor checks are done.
@jashkenas
Copy link
Owner

Eh? I'm afraid I can't merge this without a test proving that the behavior here is being changed in a beneficial way. Mind adding one?

@jashkenas
Copy link
Owner

... I guess not.

@jashkenas jashkenas closed this Jul 6, 2013
@jdalton
Copy link
Contributor

jdalton commented Jul 6, 2013

His patch is good advice anyways. I avoid it in Lo-Dash by simply exiting before the stack push.

eq19 pushed a commit to WeakPositive/underscore that referenced this pull request May 5, 2025
add note about how date is parsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants