mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13: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
|
// input
|
||||||
const Params = struct {
|
const Params = struct {
|
||||||
expression: []const u8,
|
expression: []const u8,
|
||||||
contextId: ?u8,
|
contextId: ?u8 = null,
|
||||||
|
returnByValue: ?bool = null,
|
||||||
|
awaitPromise: ?bool = null,
|
||||||
|
userGesture: ?bool = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const msg = try getMsg(alloc, Params, scanner);
|
const msg = try getMsg(alloc, Params, scanner);
|
||||||
|
|||||||
Reference in New Issue
Block a user