Summary
Creates a pre-compiled script from JavaScript code.
- Assembly
- Wyam
.Testing .JavaScript .dll - Namespace
- Wyam
.Testing .JavaScript - Containing Type
- TestJsEngine
Syntax
public IPrecompiledJavaScript Precompile(string code, string documentName)
Parameters
Name | Type | Description |
---|---|---|
code | string | JavaScript code |
documentName | string | Document name |
Return Value
Type | Description |
---|---|
I |
A pre-compiled script that can be executed by different instances of JavaScript engine |