Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Fix stack overflow in wrap. #12132

Merged
merged 1 commit into from
Aug 18, 2015
Merged

[BUGFIX beta] Fix stack overflow in wrap. #12132

merged 1 commit into from
Aug 18, 2015

Conversation

krisselden
Copy link
Contributor

Fix stack overflow when adding terminating wrapper to superFunc in wrap.

For some reason, the recursive call to wrap that doesn’t have an obvious termination, yet wasn’t causing a stack overflow until minified.

Something is wrong with our tests that are supposed to run against the minified build.

@@ -39,6 +39,10 @@ import {
} from 'ember-metal/events';
import { isStream } from 'ember-metal/streams/utils';


function K(){};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a space and no semicolon. Like:

function K() {}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should just be called something other then K, ember already has K and it represents the K Combinator, which this does not.

Lets just call it Noop or Root or something.

@krisselden
Copy link
Contributor Author

@rwjblue @stefanpenner I addressed the comments, I'd like to add the argument copying back in because I misunderstood some things. The only thing this took care of was needing to prewarm the branches since there is no longer a shared function with branching.

Fix stack overflow when adding terminating wrapper to superFunc in wrap.

For some reason, the recursive call to wrap that doesn’t have an obvious termination, yet wasn’t causing a stack overflow until minified.

Something is wrong with our tests that are supposed to run against the minified build.
rwjblue added a commit that referenced this pull request Aug 18, 2015
[BUGFIX beta] Fix stack overflow in wrap.
@rwjblue rwjblue merged commit eeed334 into master Aug 18, 2015
@rwjblue rwjblue deleted the fix-super branch August 18, 2015 01:47
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