Skip to content

DynamicHostObject in V8: function is invoked as property #729

Description

@DavidBal

Hi ClearScript-Team,

i have a problem when using the DynamicHostObject with ClearScript.V8:

const comobject = COMObjectProvider.createCOMObject("Excel.Sheet");

comobject.Application.Workbooks.Open("C:\\temp\\Sample.xlsx");

The Open function call, invokes the TryGetMember function on the DynamicHostObject.

Is there any way that function calls invokes TryInvokeMember function on the DynamicHostObject directly?

(I think the problem is that every function on a object in js is a property which returns a delegate/function "object".)

Kind regards,
David

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions