Exemple #1
0
            public Module(CommonJSManager manager, ScriptEngine engine, UniqueDocumentInfo documentInfo, UIntPtr codeDigest, Func <object> evaluator)
            {
                this.manager = manager;
                this.engine  = engine;

                DocumentInfo = documentInfo;
                CodeDigest   = codeDigest;
                Evaluator    = evaluator;
            }
Exemple #2
0
 public Module(CommonJSManager manager, ScriptEngine engine, UniqueDocumentInfo documentInfo, UIntPtr codeDigest, string code)
     : this(manager, engine, documentInfo, codeDigest, () => engine.ExecuteRaw(documentInfo, GetAugmentedCode(code), true))
 {
 }