TestJsEngine.

PrecompileResource(string, Assembly) Method

Summary

Creates a pre-compiled script from embedded JavaScript resource.

Syntax

public IPrecompiledJavaScript PrecompileResource(string resourceName, Assembly assembly)

Parameters

Name Type Description
resourceName string The case-sensitive resource name
assembly Assembly The assembly, which contains the embedded resource

Return Value

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