예제 #1
0
 public async Task InitializeAsync()
 {
     if (_module == null)
     {
         _module = await JSHost.ImportAsync("Timers", "./timers.mjs");
     }
 }
예제 #2
0
        public static async Task InitializeAsync()
        {
            if (_module == null)
            {
                Log("JavaScriptTestHelper.mjs importing");
                _module = await JSHost.ImportAsync("JavaScriptTestHelper", "./JavaScriptTestHelper.mjs");

                Log("JavaScriptTestHelper.mjs imported");
            }
        }