mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
increment call_depth on callWithThis
This commit is contained in:
@@ -115,6 +115,8 @@ pub fn tryCallWithThis(self: *const Function, comptime T: type, this: anytype, a
|
||||
|
||||
pub fn callWithThis(self: *const Function, comptime T: type, this: anytype, args: anytype) !T {
|
||||
const context = self.context;
|
||||
context.call_depth += 1;
|
||||
defer context.call_depth -= 1;
|
||||
|
||||
const js_this = try context.valueToExistingObject(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user