-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ilout to the interpeter Merge pull request #4900 from sigatrev:finallyStack exceptions in JIT result in bailouts, and BailOutHelper does a stack probe before going to the interpreter. If that stack probe fails, a stack overflow would be thrown before the original exception was handled, and the top level catch/finally was not executed. This commit ensures there is enough stack space to bail out to the interpreter to handle and exception if one is thrown.
- Loading branch information
Showing
4 changed files
with
32 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// //------------------------------------------------------------------------------------------------------- | ||
// // Copyright (C) Microsoft. All rights reserved. | ||
// // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
// //------------------------------------------------------------------------------------------------------- | ||
|
||
function foo(a) | ||
{ | ||
try { a[0] } finally {} | ||
try { foo(0) } catch(e) {} | ||
try { foo() } catch(e) {} | ||
} | ||
|
||
foo(0) | ||
|
||
WScript.Echo("PASS"); |
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