-
Notifications
You must be signed in to change notification settings - Fork 65
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
Changes in Logger() definition #231
Comments
It does seem that Logger() doesn't need to return anything. The note below Logger() mentioning that the return value matters for consoles that tend to print return values of functions doesn't really apply here, since the return value of Logger() is never used anywhere, and that's more of a function of what the Web IDL says the return value is and how browsers treat that, vs what Logger() specifically returns. I don't understand your second point about Formatter(x). |
Pull requests are welcome. |
Whatever it returns, even if it is nothing, should be the same at all of its return points.
There is no need for a separate case to print a single object since calling Formatter() with that object will return that object. So the definition can be simplified by combining the cases. |
What is the issue with the Console Standard?
The returned value types of the three return points of Logger() at https://console.spec.whatwg.org/#logger are not consistent but should be. Further, since Formatter(x) returns x when the size of x is one, steps 2, 3, and 4 can be eliminated.
The text was updated successfully, but these errors were encountered: