diff options
author | 2022-08-17 07:36:18 -0700 | |
---|---|---|
committer | 2022-08-17 07:37:14 -0700 | |
commit | 93b663e43d2288cea5f7b2e8f045c719427a914f (patch) | |
tree | a7849c913b6c4814636da3ea08ed98beadaad469 /src/bun.js/bindings/ZigConsoleClient.cpp | |
parent | 65820893c966d4f8af2c0058682d30fa6330a219 (diff) | |
download | bun-93b663e43d2288cea5f7b2e8f045c719427a914f.tar.gz bun-93b663e43d2288cea5f7b2e8f045c719427a914f.tar.zst bun-93b663e43d2288cea5f7b2e8f045c719427a914f.zip |
New Zig <> C++ bindings generator. +20% faster HTTP server
Diffstat (limited to 'src/bun.js/bindings/ZigConsoleClient.cpp')
-rw-r--r-- | src/bun.js/bindings/ZigConsoleClient.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bun.js/bindings/ZigConsoleClient.cpp b/src/bun.js/bindings/ZigConsoleClient.cpp index 66d24b129..d7cf831d4 100644 --- a/src/bun.js/bindings/ZigConsoleClient.cpp +++ b/src/bun.js/bindings/ZigConsoleClient.cpp @@ -63,7 +63,6 @@ void Zig::ConsoleClient::messageWithTypeAndLevel(MessageType type, MessageLevel auto count = std::min(args->argumentCount(), (size_t)255); for (size_t i = 0; i < count; i++) { auto val = args->argumentAt(i); - // JSC::gcProtect(val); jsArgs[i] = JSC::JSValue::encode(val); } @@ -72,10 +71,6 @@ void Zig::ConsoleClient::messageWithTypeAndLevel(MessageType type, MessageLevel static_cast<uint32_t>(level), globalObject, jsArgs, count); scope.clearException(); - - // for (size_t i = 0; i < count; i++) { - // JSC::gcUnprotect(JSC::JSValue::decode(jsArgs[i])); - // } } void Zig::ConsoleClient::count(JSGlobalObject* globalObject, const String& label) { |