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

url: do not use HandleScope in ToObject #14096

Closed
wants to merge 1 commit into from

Conversation

bmeck
Copy link
Member

@bmeck bmeck commented Jul 5, 2017

It is not needed / invalidates the returned value unlike EscapableHandleScope

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

url

It is not needed / invalidates the returned value unlike EscapableHandleScope
@bmeck bmeck requested a review from addaleax July 5, 2017 22:24
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. dont-land-on-v4.x whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Jul 5, 2017
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@TimothyGu TimothyGu left a comment

Choose a reason for hiding this comment

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

Is the Context::Scope below necessary?

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

@TimothyGu probably not, unsure though

@TimothyGu
Copy link
Member

@bmeck No matter. This still LGTM.

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

@TimothyGu checked things, and it is unneeded / fixed

@bnoordhuis
Copy link
Member

Alternative proposal that simply removes the method: #14106

It's not used anywhere so why keep it around?

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

@bnoordhuis it was added as I need it for ESM

@bnoordhuis
Copy link
Member

Why was it landed in master instead of your local feature branch? :-S Fixing bugs in dead code is a waste of time.

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

@bnoordhuis fixing bugs is fixing bugs

@bnoordhuis
Copy link
Member

Very droll. My point stands: if it's not used anywhere, it should go.

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

@bnoordhuis if I PR against my ESM stuff today does it still stand?

@bnoordhuis
Copy link
Member

If you are about to open a PR, then sure, it makes more sense to fix it than remove it.

@bmeck
Copy link
Member Author

bmeck commented Jul 6, 2017

give me a day or 2 and I will

@XadillaX
Copy link
Contributor

XadillaX commented Jul 7, 2017

LGTM.

@jasnell
Copy link
Member

jasnell commented Jul 10, 2017

The ToObject method should not be removed.

@bmeck
Copy link
Member Author

bmeck commented Jul 17, 2017

@bnoordhuis honestly, if you are going to add to my mental strain right now by this being open, closing it. Do what you want.

@bmeck bmeck closed this Jul 17, 2017
@refack refack reopened this Jul 17, 2017
refack pushed a commit to refack/node that referenced this pull request Jul 17, 2017
It is not needed / invalidates the returned value unlike EscapableHandleScope

PR-URL: nodejs#14096
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@refack
Copy link
Contributor

refack commented Jul 17, 2017

Landing this since it only improves the status quo, and does not interfere with #14106

@refack
Copy link
Contributor

refack commented Jul 17, 2017

Landed in d49e669

@refack refack closed this Jul 17, 2017
@addaleax addaleax mentioned this pull request Jul 18, 2017
addaleax pushed a commit that referenced this pull request Jul 18, 2017
It is not needed / invalidates the returned value unlike EscapableHandleScope

PR-URL: #14096
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Jul 19, 2017
It is not needed / invalidates the returned value unlike EscapableHandleScope

PR-URL: #14096
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@bmeck bmeck mentioned this pull request Jul 26, 2017
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. whatwg-url Issues and PRs related to the WHATWG URL implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants