Skip to content

n-api: re-write test_make_callback - #19448

Closed
gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:n-api-move-make-callback-test-to-c
Closed

n-api: re-write test_make_callback#19448
gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:n-api-move-make-callback-test-to-c

Conversation

@gabrielschulhof

Copy link
Copy Markdown
Contributor

This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added dont-land-on-v4.x node-api Issues and PRs related to the Node-API. test Issues and PRs related to the tests. labels Mar 19, 2018
@lpinca

Copy link
Copy Markdown
Member

@gabrielschulhof
gabrielschulhofforce-pushed the n-api-move-make-callback-test-to-c branch from c7d052c to 8e607b8CompareMarch 20, 2018 13:57
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

@gabrielschulhof
gabrielschulhofforce-pushed the n-api-move-make-callback-test-to-c branch from 8e607b8 to 6ba6588CompareMarch 20, 2018 15:35
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

Addressing Windows compilation issue (hopefully): https://ci.nodejs.org/job/node-test-pull-request/13770/

This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
@gabrielschulhof
gabrielschulhofforce-pushed the n-api-move-make-callback-test-to-c branch from 6ba6588 to ab8328aCompareMarch 20, 2018 16:57
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

Another attempt to address the compilation issue: https://ci.nodejs.org/job/node-test-pull-request/13774/

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM provided CI passes

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

The remaining errors are unrelated.

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

Landed in be47094.

gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Mar 21, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
PR-URL: nodejs#19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@gabrielschulhof
gabrielschulhof deleted the n-api-move-make-callback-test-to-c branch March 21, 2018 23:26
targos pushed a commit that referenced this pull request Mar 24, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
PR-URL: #19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 12, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
PR-URL: nodejs#19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 16, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
PR-URL: nodejs#19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
MylesBorins pushed a commit that referenced this pull request Apr 16, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
Backport-PR-URL: #19447
PR-URL: #19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@MylesBorinsMylesBorins mentioned this pull request Apr 16, 2018
MylesBorins pushed a commit that referenced this pull request May 1, 2018
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.
Backport-PR-URL: #19265
PR-URL: #19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@MylesBorinsMylesBorins mentioned this pull request May 2, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

node-apiIssues and PRs related to the Node-API.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@gabrielschulhof@lpinca@jasnell@mhdawson@nodejs-github-bot