-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
internal check macros don't work #19503
Comments
@targos interesting, I didn't observe that behaviour while testing. as it is the code is taken from v8's JS2C script so I don't know much about its specific workings. I can try to take a look later today. |
@targos i can't reproduce this. |
I just checked this and I am able to reproduce the problem. CHECK(condition);
CHECK_EQ(condition, true);
DCHECK(condition);
DCHECK_EQ(condition, true);
// Becomes
do { if (!(condition)) (process._rawDebug("CHECK: condition == true"), process.abort()) } while (0);
CHECK((condition) === (true));
void(condition);
void(condition, true); |
i'm still unable to reproduce this 😕 |
How did you try to reproduce this so far? |
I tried your inputs above but got the expected results out. |
I still have this problem. Can you try to reproduce with the following branch?
|
Ping @targos ... is this still an issue for you? I'm unable to reproduce. |
Given the lack of a follow up, I'm going to close this out. Please feel free to reopen if you believe I've made a mistake and this is still an existing issue. |
This code:
Is transformed to:
This results in a runtime
ReferenceError: CHECK is not defined
. Macros should be expanded recursively./cc @devsnek
The text was updated successfully, but these errors were encountered: