Skip to content

Commit 5eae158

Browse files
Add some optional fields in Runtime.evaluate
Signed-off-by: Francis Bouvier <[email protected]>
1 parent 9319e4a commit 5eae158

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cdp/runtime.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ fn evaluate(
125125
// input
126126
const Params = struct {
127127
expression: []const u8,
128-
contextId: ?u8,
128+
contextId: ?u8 = null,
129+
returnByValue: ?bool = null,
130+
awaitPromise: ?bool = null,
131+
userGesture: ?bool = null,
129132
};
130133

131134
const msg = try getMsg(alloc, Params, scanner);

0 commit comments

Comments
 (0)