Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Evaluating CLR Method as value in script

0
0
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 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!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images