This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: update ChakraCore to chakra-core/ChakraCore@f58e17fd23
[MERGE #4796 @mrkmarron] Fixes for step-back with async Merge pull request #4796 from mrkmarron:asyncfixes19 Add missing snapshot visit location. Fix previous line logic for inline awaits. Reviewed-By: chakrabot <chakrabot@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
137 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function resolveWait(x) { | ||
return new Promise(resolve => { | ||
WScript.SetTimeout(() => { | ||
resolve(x); | ||
}, 100); | ||
}); | ||
} | ||
|
||
async function awaitImm(x) { | ||
const a = await resolveWait(1); | ||
const b = await resolveWait(2); | ||
return x + a + b; | ||
} | ||
|
||
awaitImm(1).then(v => { | ||
telemetryLog(v.toString(), true); | ||
emitTTDLog(ttdLogURI); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
4 |
3 changes: 3 additions & 0 deletions
3
deps/chakrashim/core/test/TTBasic/asyncAwait2Replay_1.baseline
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
4 | ||
|
||
Reached end of Execution -- Exiting. |
3 changes: 3 additions & 0 deletions
3
deps/chakrashim/core/test/TTBasic/asyncAwait2Replay_2.baseline
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
4 | ||
|
||
Reached end of Execution -- Exiting. |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function resolveWait(x) { | ||
return new Promise(resolve => { | ||
WScript.SetTimeout(() => { | ||
resolve(x); | ||
}, 100); | ||
}); | ||
} | ||
|
||
async function awaitLater(x) { | ||
const p_a = resolveWait(10); | ||
const p_b = resolveWait(20); | ||
return x + await p_a + await p_b; | ||
} | ||
|
||
WScript.SetTimeout(function () { | ||
awaitLater(10).then(v => { | ||
telemetryLog(v.toString(), true); | ||
emitTTDLog(ttdLogURI); | ||
}); | ||
}, 0); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
40 |
3 changes: 3 additions & 0 deletions
3
deps/chakrashim/core/test/TTBasic/asyncAwait3Replay_1.baseline
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
40 | ||
|
||
Reached end of Execution -- Exiting. |
3 changes: 3 additions & 0 deletions
3
deps/chakrashim/core/test/TTBasic/asyncAwait3Replay_2.baseline
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
40 | ||
|
||
Reached end of Execution -- Exiting. |
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