2
0

crosssite_bind_main.js 623 B

12345678910111213141516
  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. function mainFunc(inName) {
  6. for (i in this) {
  7. if (i == inName) {
  8. WScript.Echo("PASS");
  9. }
  10. }
  11. }
  12. mainFunc.one = 20;
  13. child = WScript.LoadScriptFile("crosssite_bind_child.js", "samethread");
  14. childFunc = child.setupFunc(mainFunc);
  15. childFunc();