1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 03:35:09 +00:00
serenity/Libraries/LibJS
Emanuele Torre e91ab0cb02 LibJS: Implement ConsoleClient
Now, you can optionally specify a ConsoleClient, to customise the
behaviour of the LibJS Console.

To customise the console, create a new ConsoleClient class that inherits
from JS::ConsoleClient and override all the abstract methods.

When Console::log() is called, if Console has a ConsoleClient,
ConsoleClient::log() is called instead.

These abstract methods are Value(void) functions: you can return a Value
which will be returned by the JavaScript function which calls that
method, in JavaScript.
2020-05-05 09:15:16 +02:00
..
Heap LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
Runtime LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
Tests LibJS: Implement rest parameters 2020-05-04 23:30:52 +02:00
AST.cpp LibJS: Implement rest parameters 2020-05-04 23:30:52 +02:00
AST.h LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
Console.cpp LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Console.h LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Forward.h LibJS: Add Reference class to represent a base.property reference 2020-04-28 15:07:08 +02:00
Interpreter.cpp LibJS: Add some helpers and use them to re-implement Console functions 2020-05-05 09:15:16 +02:00
Interpreter.h LibJS: Add some helpers and use them to re-implement Console functions 2020-05-05 09:15:16 +02:00
Lexer.cpp LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Lexer.h LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Makefile LibJS: Start implementing a Console class for the interpreter 2020-05-02 11:41:35 +02:00
Parser.cpp LibJS: Implement rest parameters 2020-05-04 23:30:52 +02:00
Parser.h LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Token.cpp LibJS: Add template literals 2020-05-04 16:46:31 +02:00
Token.h LibJS: Add template literals 2020-05-04 16:46:31 +02:00