◐ Shell
clean mode source ↗

node-api: factor out common code into macros · nodejs/node@1aa71c2

node-api: factor out common code into macros

* Create macro for checking new string arguments. * Create macro for combining env check and inside-gc check. PR-URL: #50664 Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Backport-PR-URL: #51804 (cherry picked from commit 5e250bd)

1 parent 3d0b233 commit 1aa71c2

3 files changed

Lines changed: 86 additions & 141 deletions