-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: [debug] 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: #10873 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]> Reviewed-By: jasnell - James M Snell <[email protected]> Reviewed-By: ofrobots - Ali Ijaz Sheikh <[email protected]>
- Loading branch information
1 parent
10e3092
commit 3516f35
Showing
3 changed files
with
30 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,27 @@ | ||
// 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 | ||
|
||
'use strict'; | ||
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(); |