multiple-roots-circular.js 729 B

12345678910111213
  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. // Tests that circular overlapping module dependencies are all loaded before execution
  6. WScript.RegisterModuleSource("mod0.js", "print('pass')");
  7. WScript.RegisterModuleSource("mod1.js", "import 'mod2.js';");
  8. WScript.RegisterModuleSource("mod2.js", "import 'mod0.js';");
  9. WScript.LoadScriptFile("mod2.js", "module");
  10. WScript.LoadScriptFile("mod1.js", "module");