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

test: extend async addon test #14922

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented Aug 18, 2017

Test more current behaviour, based on discussions in #14697.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes (presumably … do you know how long make test takes by now?)
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test/addons

@trevnorris

Quick CI: https://ci.nodejs.org/job/node-test-commit-linuxone/8090/nodes=rhel72-s390x/

@nodejs-github-bot nodejs-github-bot added addons Issues and PRs related to native addons. test Issues and PRs related to the tests. labels Aug 18, 2017
Test more current behaviour, based on discussions in
nodejs#14697.
Copy link
Contributor

@trevnorris trevnorris left a comment

Choose a reason for hiding this comment

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

two nits. otherwise LGTM

@@ -52,7 +62,7 @@ void AfterAsync(uv_work_t* r) {
node::FatalException(isolate, try_catch);
}
}

template <bool use_makecallback>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: mind adding the empty line above this again?

Copy link
Member Author

Choose a reason for hiding this comment

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

sorry, yes.

v8::Local<v8::Function> callback =
v8::Local<v8::Function>::New(isolate, req->callback);
callback->Call(isolate->GetCurrentContext()->Global(), 2, argv);

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: trailing whitespace here

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks for catching this!

@addaleax
Copy link
Member Author

addaleax commented Aug 23, 2017

CI: https://ci.nodejs.org/job/node-test-commit/11987/

This should be ready.

@addaleax
Copy link
Member Author

Landed in 7e54424

@addaleax addaleax closed this Aug 24, 2017
@addaleax addaleax deleted the test-async-makecallback branch August 24, 2017 19:03
addaleax added a commit that referenced this pull request Aug 24, 2017
Test more current behaviour, based on discussions in
#14697.

PR-URL: #14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax added a commit to addaleax/ayo that referenced this pull request Aug 25, 2017
Test more current behaviour, based on discussions in
nodejs/node#14697.

PR-URL: nodejs/node#14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax added a commit to ayojs/ayo that referenced this pull request Aug 28, 2017
Test more current behaviour, based on discussions in
nodejs/node#14697.

PR-URL: nodejs/node#14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Sep 10, 2017
Test more current behaviour, based on discussions in
#14697.

PR-URL: #14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Sep 10, 2017
MylesBorins pushed a commit that referenced this pull request Sep 12, 2017
Test more current behaviour, based on discussions in
#14697.

PR-URL: #14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Sep 20, 2017
Test more current behaviour, based on discussions in
#14697.

PR-URL: #14922
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addons Issues and PRs related to native addons. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants