I have an issue with executing JS code that uses methods of c# objects set as parameters.
I'm trying to implement DOM structure in my project and use v8 to run JS code. I've created Document class and set parameter 'document' to engine. When I call any property (e.g. var root = document.documentElement) everything works fine, property in C# class
is called. But when I try methods (e.g. var div = document.getElementById('div')) then I get an error saying that IsJSObject check failed.
which is wrong one. I've switched conditions so IsExternal called first and everything works now.
But I'm not sure that this is proper solution. May be there is some meaning with existing checks order. Could you please tell me if my solution is valid or I have to find another one and checks order can not be changed?