-
Notifications
You must be signed in to change notification settings - Fork 49
NiL
Taritsyn edited this page Aug 1, 2020
·
32 revisions
JavaScriptEngineSwitcher.NiL contains adapter NiLJsEngine
(wrapper for the NiL JavaScript Engine version 2.5.1466).
You can specify a settings of JS engine during its registration:
engineSwitcher.EngineFactories
.AddNiL(new NiLSettings
{
StrictMode = true
})
;
If you manually create an instance of JS engine, then you can pass settings via the constructor:
IJsEngine engine = new NiLJsEngine(
new NiLSettings
{
StrictMode = true
}
);
Consider in detail properties of the NiLSettings
class:
Property name | Data type | Default value | Description |
---|---|---|---|
DebuggerCallback |
DebuggerCallback delegate |
null |
Debugger callback. |
EnableDebugging |
Boolean |
false |
Flag for whether to enable script debugging features. |
LocalTimeZone |
TimeZoneInfo |
TimeZoneInfo.Local |
Local time zone for the Date objects in the script. |
StrictMode |
Boolean |
false |
Flag for whether to allow run the script in strict mode. |
- Registration of JS engines
- Creating instances of JS engines
- JS engines
- Upgrade guides
- Additional reading and resources