TestJsEngine.

PrecompileFile(string, Encoding) Method

Summary

Creates a pre-compiled script from JavaScript file.

Syntax

public IPrecompiledJavaScript PrecompileFile(string path, Encoding encoding = null)

Parameters

Name Type Description
path string Path to the JavaScript file
encoding Encoding Text encoding

Return Value

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