mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Add some optional fields in Runtime.evaluate
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user