mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibJS: Begin implementing console.dir
The intent of the spec is that the output of console.dir is interactable within the console. Our Printer implementation currently just prints the provided object as a string, and doesn't check the provided `options` argument. But having console.dir defined prevents exceptions from being thrown on real websites.
This commit is contained in:
parent
9f8e5f0b1c
commit
396655d145
5 changed files with 31 additions and 0 deletions
|
@ -30,6 +30,7 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(log);
|
||||
JS_DECLARE_NATIVE_FUNCTION(trace);
|
||||
JS_DECLARE_NATIVE_FUNCTION(warn);
|
||||
JS_DECLARE_NATIVE_FUNCTION(dir);
|
||||
JS_DECLARE_NATIVE_FUNCTION(count);
|
||||
JS_DECLARE_NATIVE_FUNCTION(count_reset);
|
||||
JS_DECLARE_NATIVE_FUNCTION(group);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue