loadReEntrant.js 854 B

123456789101112131415161718192021222324
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. WScript.LoadScriptFile('../../test/TTBasic/loadTarget.js');
  6. var msgFunction = foo('World');
  7. var msg0 = msgFunction();
  8. WScript.SetTimeout(testFunction, 50);
  9. /////////////////
  10. function testFunction()
  11. {
  12. telemetryLog(`msg0: ${msg0}`, true); //Hello World #0
  13. telemetryLog(`msgFunction() -- 1: ${msgFunction()}`, true); //Hello World #1
  14. telemetryLog(`msgFunction() -- 2: ${msgFunction()}`, true); //Hello World #2
  15. emitTTDLog(ttdLogURI);
  16. }