Skip to content

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

Merged
rwjblue merged 1 commit intomasterfrom
fix-super
Aug 18, 2015
Merged

[BUGFIX beta] Fix stack overflow in wrap.#12132
rwjblue merged 1 commit intomasterfrom
fix-super

Conversation

@krisselden
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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