aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/javascript/jsc/test')
-rw-r--r--src/javascript/jsc/test/jest.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/javascript/jsc/test/jest.zig b/src/javascript/jsc/test/jest.zig
index 459d3b9eb..e91ca2643 100644
--- a/src/javascript/jsc/test/jest.zig
+++ b/src/javascript/jsc/test/jest.zig
@@ -368,8 +368,8 @@ pub const Expect = struct {
const left = JSValue.fromRef(arguments[0]);
const right = JSValue.fromRef(this.value);
if (!left.isSameValue(right, ctx.ptr())) {
- var lhs_formatter: JSC.ZigConsoleClient.Formatter = JSC.ZigConsoleClient.Formatter{};
- var rhs_formatter: JSC.ZigConsoleClient.Formatter = JSC.ZigConsoleClient.Formatter{};
+ var lhs_formatter: JSC.ZigConsoleClient.Formatter = JSC.ZigConsoleClient.Formatter{ .globalThis = ctx.ptr() };
+ var rhs_formatter: JSC.ZigConsoleClient.Formatter = JSC.ZigConsoleClient.Formatter{ .globalThis = ctx.ptr() };
JSC.JSError(
getAllocator(ctx),