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

New Post: Weird Parameter Passing Behavior

0
0
Hi JC,

It sounds like the named property you're invoking isn't a function :)

The following test program demonstrates the extension module above:
Module TestModule
    Sub Main()
        Using engine AsNew V8ScriptEngine
            engine.AddHostType("Console", GetType(System.Console))
            engine.Execute("function foo(arg) { Console.WriteLine('Foo: {0}', arg); }")
            engine.InvokeFunction("foo", {123.456})
        EndUsingEndSubEndModule
Is there anything you're doing differently?

Thanks!

Viewing all articles
Browse latest Browse all 2297