Skip to content

src: Handle NULL env scenario - #31899

Closed
HarshithaKP wants to merge 2 commits into
nodejs:masterfrom
HarshithaKP:module_wrap_handle_null_ptr
Closed

src: Handle NULL env scenario#31899
HarshithaKP wants to merge 2 commits into
nodejs:masterfrom
HarshithaKP:module_wrap_handle_null_ptr

Conversation

@HarshithaKP

Copy link
Copy Markdown
Member

Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc

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

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Feb 21, 2020
Comment threadsrc/module_wrap.cc Outdated
@HarshithaKP
HarshithaKPforce-pushed the module_wrap_handle_null_ptr branch from c06e445 to baa5f1aCompareFebruary 21, 2020 08:39
Comment threadsrc/node_errors.h Outdated
@HarshithaKP

Copy link
Copy Markdown
MemberAuthor

While going through the file found one more similar location, fixed it.

@HarshithaKP

Copy link
Copy Markdown
MemberAuthor

Surprisingly make format-cpp did not fix the error. Fixed it in one more commit.

@addaleaxaddaleax 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 with docs added

Comment threadsrc/node_errors.h Outdated
Comment threaddoc/api/errors.md Outdated
Comment threadsrc/node_errors.h Outdated
@HarshithaKP
HarshithaKPforce-pushed the module_wrap_handle_null_ptr branch from 870a3cb to 53c0050CompareMarch 5, 2020 07:17
Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc
@HarshithaKP
HarshithaKPforce-pushed the module_wrap_handle_null_ptr branch from 8594430 to 8069174CompareMarch 5, 2020 07:22
@HarshithaKP

Copy link
Copy Markdown
MemberAuthor

I rebased and commits squashed

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadsrc/node_errors.h Outdated
@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 5, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@addaleax

Copy link
Copy Markdown
Member

Landed in e9fa5ae

addaleax pushed a commit that referenced this pull request Mar 9, 2020
Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc.
PR-URL: #31899
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@addaleaxaddaleax closed this Mar 9, 2020
MylesBorins pushed a commit that referenced this pull request Mar 9, 2020
Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc.
PR-URL: #31899
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@MylesBorinsMylesBorins mentioned this pull request Mar 10, 2020
@targostargos added backport-blocked-v12.x and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-blocked-v12.x labels Apr 20, 2020
targos pushed a commit to targos/node that referenced this pull request Apr 25, 2020
Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc.
PR-URL: nodejs#31899
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos pushed a commit that referenced this pull request Apr 28, 2020
Convert hard assertion into a throw with a useful error
message in src/module_wrap.cc.
PR-URL: #31899
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@targostargos mentioned this pull request May 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@HarshithaKP@nodejs-github-bot@addaleax@mscdex@targos