mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Allow JS Callback to be called with a previously-unseen this.
This commit is contained in:
@@ -1421,7 +1421,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
|
|||||||
const this_obj = if (@TypeOf(value) == JsObject)
|
const this_obj = if (@TypeOf(value) == JsObject)
|
||||||
value.js_obj
|
value.js_obj
|
||||||
else
|
else
|
||||||
try self.js_context.valueToExistingObject(value);
|
(try self.js_context.zigValueToJs(value)).castTo(v8.Object);
|
||||||
|
|
||||||
return .{
|
return .{
|
||||||
.id = self.id,
|
.id = self.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user