mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
merge main
This commit is contained in:
@@ -236,7 +236,7 @@ fn _toString(self: Value, comptime null_terminate: bool, opts: js.String.ToZigOp
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn (ctx: *js.Context, json: []const u8) !Value {
|
pub fn fromJson(ctx: *js.Context, json: []const u8) !Value {
|
||||||
const v8_isolate = v8.Isolate{ .handle = ctx.isolate.handle };
|
const v8_isolate = v8.Isolate{ .handle = ctx.isolate.handle };
|
||||||
const json_string = v8.String.initUtf8(v8_isolate, json);
|
const json_string = v8.String.initUtf8(v8_isolate, json);
|
||||||
const v8_context = v8.Context{ .handle = ctx.handle };
|
const v8_context = v8.Context{ .handle = ctx.handle };
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ pub fn warn(_: *const Console, values: []js.Value, page: *Page) void {
|
|||||||
|
|
||||||
pub fn clear(_: *const Console) void {}
|
pub fn clear(_: *const Console) void {}
|
||||||
|
|
||||||
pub fn assert(_: *const Console, assertion: js.Value, values: []js.Object, page: *Page) void {
|
pub fn assert(_: *const Console, assertion: js.Value, values: []js.Value, page: *Page) void {
|
||||||
if (assertion.toBool()) {
|
if (assertion.toBool()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user