Implement console.trace (#34629)

* Include unimplemented console methods in idl file

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Fix console.assert signature

The condition is optional and there can be multiple messages.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement console.trace

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* ./mach fmt

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Log stack trace when calling console.trace

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update wpt expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Include line/column info in console.trace logs

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Move option out of constant

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update mozjs

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-12-19 00:45:06 +01:00 committed by GitHub
parent ba56494eec
commit 28e330c9b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 143 additions and 45 deletions

View file

@ -1,13 +1,7 @@
[idlharness.any.html]
[console namespace: operation assert(optional boolean, any...)]
expected: FAIL
[console namespace: operation table(optional any, optional sequence<DOMString>)]
expected: FAIL
[console namespace: operation trace(any...)]
expected: FAIL
[console namespace: operation dir(optional any, optional object?)]
expected: FAIL
@ -16,15 +10,9 @@
[idlharness.any.worker.html]
[console namespace: operation assert(optional boolean, any...)]
expected: FAIL
[console namespace: operation table(optional any, optional sequence<DOMString>)]
expected: FAIL
[console namespace: operation trace(any...)]
expected: FAIL
[console namespace: operation dir(optional any, optional object?)]
expected: FAIL