Add some optional fields in Runtime.evaluate

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-06-19 15:23:09 +02:00
parent 9319e4a7f1
commit 5eae15889d

View File

@@ -125,7 +125,10 @@ fn evaluate(
// input
const Params = struct {
expression: []const u8,
contextId: ?u8,
contextId: ?u8 = null,
returnByValue: ?bool = null,
awaitPromise: ?bool = null,
userGesture: ?bool = null,
};
const msg = try getMsg(alloc, Params, scanner);