TestJsEngine.

Precompile(string, string) Method

Summary

Creates a pre-compiled script from JavaScript code.

Syntax

public IPrecompiledJavaScript Precompile(string code, string documentName)

Parameters

Name Type Description
code string JavaScript code
documentName string Document name

Return Value

Type Description
IPrecompiledJavaScript A pre-compiled script that can be executed by different instances of JavaScript engine
GitHub