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

lib: remove bootstrap global context indirection #6062

Closed

Conversation

Fishrock123
Copy link
Contributor

Pull Request check-list

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with
    this change (including linting)?
  • Is the commit message formatted according to CONTRIBUTING.md?

Affected core subsystem(s)

lib

Description of change

Refs: #5881 (comment)

@thealphanerd

@Fishrock123 Fishrock123 added lib / src Issues and PRs related to general changes in the lib or src directory. is-backport labels Apr 5, 2016
@mscdex mscdex added the v5.x label Apr 5, 2016
@MylesBorins MylesBorins self-assigned this Apr 5, 2016
Local<Value> arg = env->process_object();
f->Call(global, 1, &arg);
f->Call(Null(env->isolate()), ARRAY_SIZE(&arg), &arg);
Copy link
Member

Choose a reason for hiding this comment

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

Don't use ARRAY_SIZE(&arg) here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok but that was what the original patch was...

As far as I understand, it's not wrong in this case? Also, won't your PR be back-porting ontop of this?

Copy link
Member

Choose a reason for hiding this comment

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

It's up for debate whether something that works by accident is wrong or not but if you're back-porting this anyway, I'd recommend changing it to something that's obviously correct. I'll update my back-port PR accordingly, I can simply drop the commit that fixes up this line.

PR-URL: nodejs#5881
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Conflicts:
	lib/internal/bootstrap_node.js
	src/node.cc
@Fishrock123 Fishrock123 force-pushed the less-context-indirection-v5.x branch from 498a47c to daa191f Compare April 7, 2016 15:02
@Fishrock123
Copy link
Contributor Author

@jasnell
Copy link
Member

jasnell commented Apr 7, 2016

LGTM

@MylesBorins
Copy link
Contributor

landed in v5.x as d4abca5

@MylesBorins MylesBorins removed their assignment Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants