-
Notifications
You must be signed in to change notification settings - Fork 49
Nil - can't locate function name #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, Dean! It seems, that this is some kind of error in the NiL.JS, because it occurs only in strict mode. I created a issue in repository of the original project - nilproject/NiL.JS#146 |
Yep, that's it! Thanks for the quick response, and thanks for JSEngineSwitcher, very helpful. |
By the way, instead of the |
OK. Thx. I'll close this now. |
Hello, Dean! This error is fixed in version 3.0.0 Beta 9. |
Hi,
I'm trying to use JavaScriptEngineSwitcher for the NiL JS engine as it is the best fit for my use-case, however it seems there is an issue with being able to call functions, with the switcher reporting JavaScriptEngineSwitcher.Core.JsRuntimeException: 'The function with the name 'negate' does not exist.'
yet when I run exactly the same code with Jint it works fine. Is the NiL wrapper not ready for use? The code is from your test cases, as below:
` JsEngineSwitcher engineSwitcher = (JsEngineSwitcher)JsEngineSwitcher.Current;
engineSwitcher.EngineFactories
.AddNiL(new NiLSettings
{
StrictMode = true
})
//.AddJint()
//.AddJurassic()
//.AddMsie(new MsieSettings
//{
// UseEcmaScript5Polyfill = true,
// UseJson2Library = true
//})
//.AddV8()
;
The text was updated successfully, but these errors were encountered: