From da554fb0d60b6c0f340cd9000c1114d8075a8f54 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 11 Nov 2023 01:22:12 +0100 Subject: [PATCH] Update src/proxy/object.ts Co-authored-by: Alexander Lichter --- src/proxy/object.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/object.ts b/src/proxy/object.ts index ff8a708..cfe911b 100644 --- a/src/proxy/object.ts +++ b/src/proxy/object.ts @@ -28,7 +28,7 @@ export function proxifyObject( prop.key.type === "BooleanLiteral") && prop.key.value.toString() === key ) { - return (prop.value as any).value || prop.value; + return (prop.value as any).value ?? prop.value; } } };