-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: backport 7c3748a from upstream V8
Original commit message: load correct stack slot for frame details. [email protected] BUG=v8:5071 Review URL: https://codereview.chromium.org/2045863002 . Cr-Commit-Position: refs/heads/master@{#36769} PR-URL: #10881 Reviewed-By: Myles Borins <[email protected]>
- Loading branch information
1 parent
51d62f7
commit 8b82ed0
Showing
3 changed files
with
29 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
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,26 @@ | ||
// Copyright 2016 the V8 project authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// Flags: --expose-debug-as debug | ||
|
||
var Debug = debug.Debug; | ||
|
||
function listener(event, exec_state, event_data, data) { | ||
assertEquals(2, exec_state.frameCount()); | ||
assertEquals("a", exec_state.frame(0).localName(0)); | ||
assertEquals("1", exec_state.frame(0).localValue(0).value()); | ||
assertEquals(1, exec_state.frame(0).localCount()); | ||
} | ||
|
||
Debug.setListener(listener); | ||
|
||
function f() { | ||
var a = 1; | ||
{ | ||
let b = 2; | ||
debugger; | ||
} | ||
} | ||
|
||
f(); |