Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
21,216 additions
and
19,685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Copyright (C) Microsoft Corporation and contributors. All rights reserved. | ||
// Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
R"====( | ||
var $262 = { | ||
createRealm: function () { | ||
return WScript.LoadScript('', 'samethread').$262; | ||
}, | ||
global: this, | ||
agent: { | ||
start: function (src) { | ||
WScript.LoadScript( | ||
` | ||
$262 = { | ||
agent:{ | ||
receiveBroadcast: function(callback){ WScript.ReceiveBroadcast(callback); }, | ||
report: function(value){ WScript.Report(value); }, | ||
leaving: function(){ WScript.Leaving(); } | ||
} | ||
}; | ||
${src} | ||
`, 'crossthread'); | ||
}, | ||
broadcast: function (sab) { WScript.Broadcast(sab); }, | ||
sleep: function (timeout) { WScript.Sleep(timeout); }, | ||
getReport: function () { return WScript.GetReport(); }, | ||
}, | ||
createRealm: () => WScript.LoadScript('', 'samethread').$262, | ||
global: this, | ||
agent: { | ||
start(src) { | ||
WScript.LoadScript(` | ||
$262 = { | ||
agent: { | ||
receiveBroadcast: WScript.ReceiveBroadcast, | ||
report: WScript.Report, | ||
leaving: WScript.Leaving, | ||
monotonicNow: WScript.monotonicNow | ||
} | ||
}; | ||
${ src } | ||
`, 'crossthread'); | ||
}, | ||
broadcast: WScript.Broadcast, | ||
sleep: WScript.Sleep, | ||
getReport: WScript.GetReport, | ||
monotonicNow: WScript.monotonicNow | ||
} | ||
}; | ||
)====" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.