diff options
author | 2022-06-30 19:27:30 -0700 | |
---|---|---|
committer | 2022-06-30 19:27:30 -0700 | |
commit | ac8dd5e59b1d90cd692bff2cc794f7c91b9b5edd (patch) | |
tree | 51049d4bce76cbddcee0b453025d23ae9ebf173d /src/bun.js/bindings/ZigConsoleClient.cpp | |
parent | c9f1d146c20fbdd13f31f8784a083512e1740c26 (diff) | |
download | bun-ac8dd5e59b1d90cd692bff2cc794f7c91b9b5edd.tar.gz bun-ac8dd5e59b1d90cd692bff2cc794f7c91b9b5edd.tar.zst bun-ac8dd5e59b1d90cd692bff2cc794f7c91b9b5edd.zip |
Create `process` object lazily
Diffstat (limited to 'src/bun.js/bindings/ZigConsoleClient.cpp')
-rw-r--r-- | src/bun.js/bindings/ZigConsoleClient.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bun.js/bindings/ZigConsoleClient.cpp b/src/bun.js/bindings/ZigConsoleClient.cpp index e3556ee0b..66d24b129 100644 --- a/src/bun.js/bindings/ZigConsoleClient.cpp +++ b/src/bun.js/bindings/ZigConsoleClient.cpp @@ -57,8 +57,6 @@ void Zig::ConsoleClient::messageWithTypeAndLevel(MessageType type, MessageLevel Ref<ScriptArguments>&& arguments) { JSC::VM& vm = globalObject->vm(); - JSC::GCDeferralContext deferralContext(vm); - JSC::DisallowGC disallowGC; auto args = arguments.ptr(); JSC__JSValue jsArgs[255]; @@ -69,7 +67,7 @@ void Zig::ConsoleClient::messageWithTypeAndLevel(MessageType type, MessageLevel jsArgs[i] = JSC::JSValue::encode(val); } - auto scope = DECLARE_THROW_SCOPE(vm); + auto scope = DECLARE_CATCH_SCOPE(vm); Zig__ConsoleClient__messageWithTypeAndLevel(this->m_client, static_cast<uint32_t>(type), static_cast<uint32_t>(level), globalObject, jsArgs, count); |