-
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
Wrong behaviour of console.log in node 10 #34610
Comments
@oscaretu thanks for the issue :)
|
@addaleax can you assign this one to me? |
@iandrc Sure – just be prepared, I think this may be something that might intentionally have been changed as a semver-major commit (i.e. not backportable). |
@addaleax so, what should we do in such a case? Would we need to add a different logic for this one or leave "as is?" |
@iandrc That depends on the commit, e.g. whether it’s partially backportable or not. But probably leave it as-is, yes. |
Currently, I'm not as familiar with Yet, I observed one interesting thing. If we run the proposed code, we'll see the output @oscaretu observed:
However, if we'll add some formatting specifiers, it'll work just fine. For example, the lines:
print the line you expect to see, namely:
I guess, the problem is somehow related to |
Glancing through the changelog for 12, I'd guess #25046 (explicitly marked ( To set some expectations, Node.js 10.x is in maintenance now, which means there are no scheduled further updates planned (it will continue to get critical security fixes up until it's End-of-Life in April 2021). If there are small, low risk changes the Release WG may allow them to land on the v10.x-staging branch. |
@richardlau yeah, you're probably right. I missed those changes. Thanks for helping me out. Could you, please, explain how did you search? Because I have no idea how to search through commits more efficiently. Just curious. Yeah, I believe that we won't change anything for So, could we close this one? What do you think? |
I vaguely remembered #29592 (not specifics, just the general gist of it) and CTRL+F searched through https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md for If those two PRs (or one of them) were the fix then it's highly unlikely we'd backport to 10.x. |
In this case, we, probably, can close the ticket. |
I don't think there is anything actionable left here as per the discussion above. Closing for now. |
What steps will reproduce the bug?
If you execute this program with v10.20.1:
you get
How often does it reproduce? Is there a required condition?
It appears always if I use the v10.20.1 version. It doesn't happen if I use versions v12.18.3 or v14.7.0
What is the expected behavior?
You shoudn't get this:
but
(with a "n" suffix at the end of the number)
And you shouldn't get this:
but this (without single quotes, and with a new line instead of
\n
):The text was updated successfully, but these errors were encountered: