node-api: convert NewEnv to node_napi_env__::New#57834
node-api: convert NewEnv to node_napi_env__::New#57834nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57834 +/- ##
==========================================
- Coverage 90.24% 90.15% -0.09%
==========================================
Files 630 628 -2
Lines 185470 185036 -434
Branches 36375 36234 -141
==========================================
- Hits 167371 166823 -548
- Misses 10993 11164 +171
+ Partials 7106 7049 -57
🚀 New features to boost your workflow:
|
|
The build fails because VS2022 build for ARM64 hits out of memory issue: I wonder if it is a known issue and someone is looking at it, or I should see where to add the |
Hello. Yes, this is a known problem, although it doesn't occur often. We are already setting I have restarted CI for this, so let's see if it succeeds this time. |
|
Landed in c326200 |
|
@StefanStojanovic and @lpinca , thank you for helping with the PR completion! |
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
PR-URL: #57834 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Convert local
v8impl::NewEnvfunction to thenode_napi_env__::Newmethod.The new method helps creating new Node-API environment by any code that includes the
node_api_internals.hheader file.There are no changes to the function bodies except for moving them to the top of the file.
The
ThrowNodeApiVersionErrorhad to be moved because the node_napi_env__::New uses it.This change is required for the new C-based Node.js embedding API - PR #54660.
Since the PR #54660 is too big, it was decided in a Node-API meeting to split it up into smaller PRs.
This is the first PR in the series.