Commit dd47386
Fix console.log() with no arguments not printing newline
Changed ArgumentRequirement from Yes to No in logWithLevel so that
console.log(), console.debug(), console.info(), console.warn(), and
console.error() with no arguments will still call messageWithTypeAndLevel.
This allows embedders like Bun to handle the empty argument case and
print a newline, matching Node.js and browser behavior.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 681cd50 commit dd47386
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments