Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: replace ASSERT with CHECK #14474

Closed
wants to merge 1 commit into from
Closed

Conversation

bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Jul 25, 2017

Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks. Replace calls to ASSERT
and friends with their CHECK counterparts.

Fixes: #14461
CI: https://ci.nodejs.org/job/node-test-pull-request/9343/

Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks.  Replace calls to ASSERT
and friends with their CHECK counterparts.

Fixes: nodejs#14461
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Jul 25, 2017
@ChALkeR
Copy link
Member

ChALkeR commented Jul 25, 2017

@bnoordhuis bnoordhuis closed this Jul 27, 2017
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request Jul 27, 2017
Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks.  Replace calls to ASSERT
and friends with their CHECK counterparts.

Fixes: nodejs#14461
PR-URL: nodejs#14474
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Nikolai Vavilov <[email protected]>
Reviewed-By: XadillaX <[email protected]>
@bnoordhuis
Copy link
Member Author

bnoordhuis commented Jul 27, 2017

@ChALkeR node.h and node_object_wrap.h are public headers, they can't use CHECK. I'll open a separate PR for the other two. (I pointed out the assert() in node_api.cc a while ago but seems it hasn't been fixed yet.)

edit: wups, the PR I put up for review didn't contain the change to node.gyp.

addaleax pushed a commit that referenced this pull request Jul 27, 2017
Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks.  Replace calls to ASSERT
and friends with their CHECK counterparts.

Fixes: #14461
PR-URL: #14474
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Nikolai Vavilov <[email protected]>
Reviewed-By: XadillaX <[email protected]>
@addaleax addaleax mentioned this pull request Aug 2, 2017
@MylesBorins
Copy link
Contributor

Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label.

@MylesBorins
Copy link
Contributor

ping @bnoordhuis

1 similar comment
@MylesBorins
Copy link
Contributor

ping @bnoordhuis

Sign up for free to 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++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants