mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
ba56494eec
commit
28e330c9b6
7 changed files with 143 additions and 45 deletions
|
@ -5,16 +5,20 @@
|
|||
// https://console.spec.whatwg.org/
|
||||
|
||||
[ClassString="Console",
|
||||
Exposed=(Window,Worker,Worklet)]
|
||||
Exposed=*]
|
||||
namespace console {
|
||||
// Logging
|
||||
undefined log(any... messages);
|
||||
undefined debug(any... messages);
|
||||
undefined info(any... messages);
|
||||
undefined warn(any... messages);
|
||||
undefined error(any... messages);
|
||||
undefined assert(boolean condition, optional any message);
|
||||
undefined assert(optional boolean condition = false, any... data);
|
||||
undefined clear();
|
||||
undefined debug(any... messages);
|
||||
undefined error(any... messages);
|
||||
undefined info(any... messages);
|
||||
undefined log(any... messages);
|
||||
// undefined table(optional any tabularData, optional sequence<DOMString> properties);
|
||||
undefined trace(any... data);
|
||||
undefined warn(any... messages);
|
||||
// undefined dir(optional any item, optional object? options);
|
||||
// undefined dirxml(any... data);
|
||||
|
||||
// Counting
|
||||
undefined count(optional DOMString label = "default");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue