aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/ZigConsoleClient.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-26 16:39:40 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-26 16:39:40 -0700
commita7214ab61c42f1454a8e17c633085f12ed6bef5a (patch)
tree7da3047f2d6cbf2b1e19fd670d0d40edce5e7192 /src/javascript/jsc/bindings/ZigConsoleClient.h
parent796a9854b4a698b309a6e7a4c040047558858da6 (diff)
downloadbun-a7214ab61c42f1454a8e17c633085f12ed6bef5a.tar.gz
bun-a7214ab61c42f1454a8e17c633085f12ed6bef5a.tar.zst
bun-a7214ab61c42f1454a8e17c633085f12ed6bef5a.zip
cool
Diffstat (limited to 'src/javascript/jsc/bindings/ZigConsoleClient.h')
-rw-r--r--src/javascript/jsc/bindings/ZigConsoleClient.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/src/javascript/jsc/bindings/ZigConsoleClient.h b/src/javascript/jsc/bindings/ZigConsoleClient.h
index 11b4c6758..ee230234d 100644
--- a/src/javascript/jsc/bindings/ZigConsoleClient.h
+++ b/src/javascript/jsc/bindings/ZigConsoleClient.h
@@ -18,8 +18,11 @@ namespace Zig {
class ConsoleClient final : public JSC::ConsoleClient {
WTF_MAKE_FAST_ALLOCATED;
public:
- explicit ConsoleClient(InspectorConsoleAgent*);
~ConsoleClient() final { }
+ ConsoleClient(void* client) : JSC::ConsoleClient() {
+ m_client = client;
+ }
+
static bool logToSystemConsole();
static void setLogToSystemConsole(bool);
@@ -27,20 +30,22 @@ public:
void setDebuggerAgent(InspectorDebuggerAgent* agent) { m_debuggerAgent = agent; }
void setPersistentScriptProfilerAgent(InspectorScriptProfilerAgent* agent) { m_scriptProfilerAgent = agent; }
+ void* m_client;
private:
- void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) final;
- void count(JSC::JSGlobalObject*, const String& label) final;
- void countReset(JSC::JSGlobalObject*, const String& label) final;
- void profile(JSC::JSGlobalObject*, const String& title) final;
- void profileEnd(JSC::JSGlobalObject*, const String& title) final;
- void takeHeapSnapshot(JSC::JSGlobalObject*, const String& title) final;
- void time(JSC::JSGlobalObject*, const String& label) final;
- void timeLog(JSC::JSGlobalObject*, const String& label, Ref<Inspector::ScriptArguments>&&) final;
- void timeEnd(JSC::JSGlobalObject*, const String& label) final;
- void timeStamp(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) final;
- void record(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) final;
- void recordEnd(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) final;
- void screenshot(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) final;
+
+ void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
+ void count(JSC::JSGlobalObject*, const String& label);
+ void countReset(JSC::JSGlobalObject*, const String& label);
+ void profile(JSC::JSGlobalObject*, const String& title);
+ void profileEnd(JSC::JSGlobalObject*, const String& title);
+ void takeHeapSnapshot(JSC::JSGlobalObject*, const String& title);
+ void time(JSC::JSGlobalObject*, const String& label);
+ void timeLog(JSC::JSGlobalObject*, const String& label, Ref<Inspector::ScriptArguments>&&);
+ void timeEnd(JSC::JSGlobalObject*, const String& label);
+ void timeStamp(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
+ void record(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
+ void recordEnd(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
+ void screenshot(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
void warnUnimplemented(const String& method);
void internalAddMessage(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&);
a>Gravatar github-actions[bot] 58-196/+171 2022-05-12Serialize route generation (#3354)Gravatar Juan Martín Seery 5-59/+61 2022-05-12Corrected the default value of trailingSlash (#3353)Gravatar Rafid Muhymin Wafi 1-1/+1 2022-05-12[ci] formatGravatar matthewp 1-85/+78 2022-05-12Fixed search bar of the docs example not working (#3247)Gravatar Rafid Muhymin Wafi 1-76/+94 2022-05-12Add config option customPages (#3315)Gravatar Eloi-Perez 1-0/+14 2022-05-12fix: vite types (#3352)Gravatar Juan Martín Seery 4-5/+16 2022-05-12[ci] update lockfile (#3287)Gravatar Fred K. Schott 33-1038/+1096 2022-05-12[ci] formatGravatar matthewp 2-2/+2 2022-05-12add error hints (#3350)Gravatar Fred K. Schott 3-0/+19 2022-05-12[ci] formatGravatar matthewp 2-10/+6 2022-05-12Fix: React - Use "createRoot" instead of "hydrateRoot" for `client:only` (#3337)Gravatar Ben Holmes 4-22/+34 2022-05-12[ci] formatGravatar matthewp 1-2/+8 2022-05-12Resolve components by module ID during compilation (#3300)Gravatar Tony Sullivan 22-41/+407 2022-05-12[ci] collect statsGravatar FredKSchott 1-0/+1 2022-05-11Exclude `node-fetch` from vite.optimizeDeps (#3348)Gravatar Nate Moore 2-0/+6 2022-05-11fix: updated blog template with existing address (#3312)Gravatar Gautier Ben Aïm 1-2/+2 2022-05-11refactor(vercel): Build Output API v3 (#3216)Gravatar Juan Martín Seery 42-231/+659 2022-05-11Fix APIRoute type (#3344)Gravatar Matthew Phillips 3-11/+8 2022-05-11[create-astro] Finalize developer experience... with gradients 🚀 (#3313)Gravatar Ben Holmes 5-23/+123