Skip to content

test: extend async addon test - #14922

Closed
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:test-async-makecallback
Closed

test: extend async addon test#14922
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:test-async-makecallback

Conversation

@addaleax

@addaleaxaddaleax commented Aug 18, 2017

Copy link
Copy Markdown
Member

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-botnodejs-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.
@addaleax
addaleaxforce-pushed the test-async-makecallback branch from 9b48e76 to 610542eCompareAugust 18, 2017 15:26

@trevnorristrevnorris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

two nits. otherwise LGTM

}
}

template <bool use_makecallback>

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

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

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

addaleax commented Aug 23, 2017

Copy link
Copy Markdown
MemberAuthor

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

This should be ready.

@addaleax

Copy link
Copy Markdown
MemberAuthor

Landed in 7e54424

@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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorinsMylesBorins 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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Sep 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addonsIssues and PRs related to native addons.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@addaleax@trevnorris@jasnell@MylesBorins@nodejs-github-bot