Hi again,
Glad to hear that it worked for you, but yes, this solution can only work in V8, as JScript's embedding model is completely different and doesn't involve native proxies that conform to JavaScript's standard prototype scheme.
In fact, there's currently no way to set this up in JScript. You can expose a .NET type that defines
Thanks!
Glad to hear that it worked for you, but yes, this solution can only work in V8, as JScript's embedding model is completely different and doesn't involve native proxies that conform to JavaScript's standard prototype scheme.
In fact, there's currently no way to set this up in JScript. You can expose a .NET type that defines
toString
as a universal extension method, but that doesn't work for host methods because script code is only allowed to invoke them (ClearScript blocks all other operations including member access).Thanks!