| 123456789101112131415161718192021222324252627282930313233 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- //var e = WScript.LoadScriptFile("C:\\Chakra\\ChakraCore\\test\\TTBasic\\crossSiteChild.js", "samethread");
- var e = WScript.LoadScriptFile("crossSiteChild.js", "samethread");
- var child_obj = e.obj;
- child_obj.x = function foo1() {
- return "pass";
- }
- child_obj.y = function foo2(data) {
- telemetryLog(`${data}`, true);
- }
- WScript.SetTimeout(testFunction, 50);
- /////////////////
- function testFunction()
- {
- telemetryLog(`${child_obj.xval}`, true);
- telemetryLog(`${child_obj.otherObj.say} ${child_obj.otherStr}`, true);
- child_obj.xval = "passv"
- telemetryLog(`${child_obj.xval}`, true);
- emitTTDLog(ttdLogURI);
- }
|