-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove nodes from their previous structures #350
Conversation
} | ||
} | ||
|
||
return this.splice.apply(this, spliceArgs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return value is never used is it? Seems like overhead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doh splice vs. slice. The call is needed but it seems like the return itself is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if spliceIdx
> instances of prevIdx
that are removed? Is accounting needed there?
@matthewmueller seeing this in the wild with https://github.com/walmartlabs/fruit-loops what are the chances of getting this in? |
I'm really wondering why this wasn't at least reviewed, as well as several of @jugglinmike's other pull requests. It's true that there is no reason to |
This seems like a good idea, and I'd be happy to incorporate the feedback. As it stands, the patch conflicts with Unfortunately, I'm on a new system that is reporting test failures on
Strange. Any thoughts?
|
Same error here. Were any of the dependencies updated recently? |
Searching now... |
Any process? I got bored and started closing issues :P |
I saw that--thanks! No news yet, though... |
My guess was that eg. |
I wasn't expecting your modules so much as the ones you depend on, but that's a good idea--I'll look at expect. Although, I just triggered another build on TravisCI, and we're still passing there. |
Seems stable |
cheerio is using expect__.js__ :) Hm. Travis uses node 0.10.25, I have 0.10.26 installed. Maybe node broke? |
Actually, Travis failed, too. Have a look at the logs. |
I started thinking this, too. But as reported above, I'm also on 0.10.25 |
Oh, wow. So the test run is failing, but Mocha is exiting with status code 0... |
It's totally expect.js |
This may have been introduced with that commit, but something is may be wrong with |
Well, edit: This is what caused the bug: Automattic/expect.js@7c20523 |
Not yet--I'm making a patch instead |
Actually, if this is a bug, it's with Node.js's For our part, we need to |
While your pull request is being processed, I pinned the But we actually got a second problem: Why do the tests fail silently? |
@fb55 Mocha is silently failing when it tries to report string diffs for objects with circular references. I've submitted a patch here |
When manipulation methods operate on existing nodes, ensure that these nodes are removed from their previous structures.
Alright, I've swapped out the call-invocation for direct function invocation. I've also expanded the in-line docs to cover the arguments. @fb55 mind giving it one more look and merging? |
Remove nodes from their previous structures
Building fails on |
When manipulation methods operate on existing nodes, ensure that these
nodes are removed from their previous structures.
This should resolve issue #166.