public static void Main() { using (var engine = new V8ScriptEngine(nameof(ClearScriptConsole), V8ScriptEngineFlags.EnableDebugging)) { engine.AddHostObject("host", new ExtendedHostFunctions()); engine.AddHostObject("lib", HostItemFlags.GlobalMembers, new HostTypeCollection(typeof(string).Assembly, typeof(ScriptEngine).Assembly, engine.GetType().Assembly)); engine.SuppressExtensionMethodEnumeration = true; engine.AllowReflection = true; RunStartupFile(engine); RunConsole(engine); } }