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 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge chakra-core/ChakraCore@0c739a73be] [1.6>1.7] [MERGE #3445 @ane…
…eshdk] Keep the same register allocation path for debug and non-debug mode in generators Merge pull request #3445 from aneeshdk:GeneratorDynamicAttach In debug mode we have different register allocation logic for inner scope slots. In case of generators if the debugger is attached dynamically before the generator completes then this can cause issues. Current fix is to avoid the different paths for register allocation.
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 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
22 changes: 22 additions & 0 deletions
22
deps/chakrashim/core/test/DebuggerCommon/AsyncDynamicAttach.js
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,22 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function attach(f) { | ||
(function (r) { | ||
WScript.Attach(r); | ||
})(f); | ||
} | ||
|
||
async function mainTest(notAttachCall) { | ||
if (notAttachCall) { | ||
for (let i = 0; i < 1; ++i) { | ||
await attach(mainTest); | ||
} | ||
} else { | ||
var i = 10;/**bp:locals()**/ | ||
} | ||
} | ||
mainTest(true); | ||
WScript.Echo("PASSED"); |
10 changes: 10 additions & 0 deletions
10
deps/chakrashim/core/test/DebuggerCommon/AsyncDynamicAttach.js.dbg.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,10 @@ | ||
[ | ||
{ | ||
"this": "Object {...}", | ||
"arguments": "Object {...}", | ||
"locals": { | ||
"notAttachCall": "undefined undefined", | ||
"i": "undefined undefined" | ||
} | ||
} | ||
] |
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