Can't use "CallFunction". :\


Okay.. So, I don't know if I'm doing it wrong or what.. But I can't get CallFunction to work..

i have:
        JintEngine Engine = new JintEngine();
        Engine.Run(@"function MyTest(num) { return 'hello world ' + num; }");

        for(int i=0; i<10; i++)
            Console.WriteLine(Engine.CallFunction("MyTest", i));

'Jint.JintEngine' does not contain a definition for 'CallFunction' and no extension method 'CallFunction' accepting a first argument of type 'Jint.JintEngine' could be found (are you missing a using directive or an assembly reference?)
Closed Oct 3, 2014 at 5:43 PM by sebastienros
Jint has been rewritten and this issue should be fixed in the new version. Please check it on https://github.com/sebastienros/jint or on using the nuget package here: https://www.nuget.org/packages/Jint/