Skip to content

Commit

Permalink
Include stacktrace into log messages
Browse files Browse the repository at this point in the history
This would align behavior in Chrome and the spec.

Related discussions:

- puppeteer/puppeteer#13264
- whatwg/console#203
  • Loading branch information
OrKoN committed Nov 6, 2024
1 parent 2d20fab commit de6782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -10854,7 +10854,7 @@ Define the following [=console steps=] with |method|, |args|, and

1. Let |source| be the result of [=get the source=] given [=current Realm Record=].

1. If |method| is "<code>assert</code>", "<code>error</code>",
1. If |method| is "<code>assert</code>", "<code>error</code>", "<code>log</code>",
"<code>trace</code>", or "<code>warn</code>", let |stack| be the [=current
stack trace=]. Otherwise let |stack| be null.

Expand Down

0 comments on commit de6782b

Please sign in to comment.