node-api: refactor to cctest v8impl::Reference #38970
Conversation
e339fce
to
72528c7
95b92e8
to
2e97174
bbf5e1f
to
d6054a3
| @@ -3,6 +3,7 @@ | |||
|
|
|||
| // This file needs to be compatible with C compilers. | |||
| #include <string.h> // NOLINT(modernize-deprecated-headers) | |||
| #include "gtest/gtest_prod.h" | |||
mhdawson
Jun 11, 2021
Member
In Node-api meeting @gabrielschulhof suggested this should be in "js_native_api_v8_internals.h" instead.
In Node-api meeting @gabrielschulhof suggested this should be in "js_native_api_v8_internals.h" instead.
|
@legendecas I think we should leave the LICENCE file in src/gtest/LICENSE in addition to the reference you added. That seems consistent with the copy in test/cctest/gtest. |
|
LGTM |
|
CI: https://ci.nodejs.org/job/node-test-pull-request/38663/ 00:07:31 not ok 714 parallel/test-worker-cleanexit-with-moduleload |
|
So it seems like the label bot is not working... |
|
@gabrielschulhof hey |
|
LGTM, but did you check that this crashes when the fixes we made earlier are absent? |
|
@gabrielschulhof yeah, I did run the test against the build without the fix patch it does crash every time. |
|
Landed in 392213a |
PR-URL: #38970 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: nodejs#38970 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #38970 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
Refactor
node_api.ccandjs_native_api_v8.ccto expose internal representatives withnode_api_internals.handjs_native_api_v8.hrespectively. In that way we can test internal codebase with cctest and verify hard-to-reproduce code paths.With the new test suite, we can verify crashes fixed by #38899 in a stable way (i.e. the test crash every time without #38899)
/cc @nodejs/node-api