internal static void InitializeDefaults(TjsContext context) { if (_default == null) { System.Threading.Interlocked.CompareExchange(ref _default, context, null); } }
void InitializeLanguageContext() { var options = new Dictionary <string, object>(); context = new Runtime.TjsContext( new Microsoft.Scripting.Runtime.ScriptDomainManager( new DefaultHostingProvider(), new Microsoft.Scripting.Runtime.DlrConfiguration(false, false, options) ), options ); }