aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-07 19:21:37 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-07 19:21:37 -0700
commitf990df97ce533d2a2f6b017c5e3eb6e0c153d5e4 (patch)
treeaff5bfff0f27ddf1e89bc6330397610572dd75cf /src
parent5d7ed5cbce33c5f91ff76cea950102648f527cf8 (diff)
downloadbun-f990df97ce533d2a2f6b017c5e3eb6e0c153d5e4.tar.gz
bun-f990df97ce533d2a2f6b017c5e3eb6e0c153d5e4.tar.zst
bun-f990df97ce533d2a2f6b017c5e3eb6e0c153d5e4.zip
[misc] Don't spam `protect` / `unprotect` in debug logs
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/javascript_core_c_api.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/javascript_core_c_api.zig b/src/bun.js/javascript_core_c_api.zig
index 00f35c45a..3f9378bed 100644
--- a/src/bun.js/javascript_core_c_api.zig
+++ b/src/bun.js/javascript_core_c_api.zig
@@ -102,7 +102,7 @@ pub extern fn JSValueToNumber(ctx: JSContextRef, value: JSValueRef, exception: E
pub extern fn JSValueToStringCopy(ctx: JSContextRef, value: JSValueRef, exception: ExceptionRef) JSStringRef;
pub extern fn JSValueToObject(ctx: JSContextRef, value: JSValueRef, exception: ExceptionRef) JSObjectRef;
-const log_protection = @import("../global.zig").Environment.allow_assert;
+const log_protection = @import("../global.zig").Environment.allow_assert and false;
pub inline fn JSValueUnprotect(ctx: JSContextRef, value: JSValueRef) void {
const Wrapped = struct {
pub extern fn JSValueUnprotect(ctx: JSContextRef, value: JSValueRef) void;