Jurassic
JavaScriptEngineSwitcher.Jurassic contains adapter JurassicJsEngine (wrapper for the Jurassic version of August 3, 2020).
Engine settings
You can specify a settings of JS engine during its registration:
engineSwitcher.EngineFactories
.AddJurassic(new JurassicSettings
{
StrictMode = true
})
;If you manually create an instance of JS engine, then you can pass settings via the constructor:
IJsEngine engine = new JurassicJsEngine(
new JurassicSettings
{
StrictMode = true
}
);Consider in detail properties of the JurassicSettings class:
| Property name | Data type | Default value | Description |
|---|---|---|---|
EnableDebugging |
Boolean |
false |
Flag for whether to enable script debugging features (allows a generation of debug information). If this is set to Not supported in version for .NET Core. |
EnableIlAnalysis |
Boolean |
false |
Flag for whether to disassemble any generated IL and store it in the associated function. |
EnableHostCollectionsEmbeddingByValue |
Boolean |
false |
Flag for whether to enable conversion of host collections, that are passed or returned to script code, to script arrays. This property does not allow the embedding of host collections by using a |
StrictMode |
Boolean |
false |
Flag for whether to allow run the script in strict mode. |
Debugging
Jurassic has limited support of the debugging in Visual Studio 2010-2013.
You can debug only scripts, that have been executed by using the ExecuteFile method.
In addition, debuggable script must contain a debugger statement (see MSDN for more details).
Here are steps, that you need to do for start of debugging:
-
Switch the solution in debug mode.
-
Set the
EnableDebuggingproperty of theJurassicSettingsclass totrue. -
Add the
debuggerstatements in debuggable scripts. -
Click on the Start button.
-
In opened window(s) set breakpoint(s) in the script code.
-
Click on the Continue button.
See also same topic in the Jurassic documentation.
Known issues
Errors when accessing to the constants of embedded types.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

