-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
module: add a condition to if in case of a bug. #40549
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
When could this happen? Can you please add a test for this behavior? |
I have tried writing a test file like the below:
whthin |
Within user code, though, what's the bug you're trying to fix? |
Just like above. How can I import defaultGetFormat function in the test folder? |
Your code is correct.
I don’t understand. Just like what? Can you please clearly define the bug including steps to reproduce? |
Thank you. I have committed my test code. The step is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what bug this PR is aiming to fix, or what new functionality it intends to add.
I have said it first. #40549 (comment) |
This is not necessarily a bug. Can you please provide some user code that doesn’t behave as you’d expect in current latest Node? Including steps to reproduce, and what you expected the outcome to be. |
I have added it to the branch. but occurred a bug so I can't go on smoothly. |
I don't understand. If there aren't steps to reproduce a bug in a particular version of Node, I don't think we can land any fix. The problem needs to be clearly defined before we can adopt a solution. I'm inclined to close this and not waste any more time on it, as I feel I've asked basic questions repeatedly and not received straight answers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don’t dismiss a blocking review. I don’t think this should merge until it has clearly defined bug reproduction steps, that can be followed against a current release of Node in user code. Pointing to a test within this PR is insufficient.
@@ -0,0 +1,14 @@ | |||
'use strict'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add a flag for the test to work.
'use strict'; | |
// Flags: --expose-internals | |
'use strict'; |
If the extension does not belong to the legacyExtensionFormatMap, It should throw an Error. I add it in case of a bug.