Exemple #1
0
 /// <summary>
 /// Creates a pre-compiled script from JS code
 /// </summary>
 /// <param name="code">JS code</param>
 /// <param name="documentName">Document name</param>
 /// <returns>A pre-compiled script that can be executed by different instances of JS engine</returns>
 public virtual IPrecompiledScript Precompile(string code, string documentName)
 {
     return(InnerEngine.Precompile(code, documentName));
 }
Exemple #2
0
 /// <summary>
 /// Creates a pre-compiled script from JS code
 /// </summary>
 /// <param name="code">JS code</param>
 /// <returns>A pre-compiled script that can be executed by different instances of JS engine</returns>
 public virtual IPrecompiledScript Precompile(string code)
 {
     return(InnerEngine.Precompile(code));
 }