Taritsyn / JavaScriptEngineSwitcher

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
440 stars 49 forks source link

ChakraCore does not support c # "object" and "dynamic" #43

Closed 2A5F closed 6 years ago

2A5F commented 6 years ago

JavaScriptEngineSwitcher.Core.JsRuntimeException:“ReferenceError: Could not find suitable method or not enough arguments to invoke of 'Amethod ' method of the host object. at Global code (Script Document:1:1)”

void Amethod (object p)
{
    Console.WriteLine(p);
}
engine.Execute("xxx.Amethod (123)");

in other engines will not throw this

Taritsyn commented 6 years ago

Hello!

This error was fixed in version 3.0.0 Alpha 8. Until the end of year I will try to transfer this patch together with other updates to version 2.X.