From a86f3e660836c29b77acb2efef2511e84eb018e0 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 6 Nov 2024 13:39:46 +0100 Subject: [PATCH] Include stacktrace into log messages This would align behavior in Chrome and the spec. Related discussions: - https://github.com/puppeteer/puppeteer/issues/13264 - https://github.com/whatwg/console/issues/203 --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 420bd001..8c809318 100644 --- a/index.bs +++ b/index.bs @@ -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 "assert", "error", + 1. If |method| is "assert", "error", "log", "trace", or "warn", let |stack| be the [=current stack trace=]. Otherwise let |stack| be null.