diff options
Diffstat (limited to 'deps/v8/src/inspector/debugger-script.js')
-rw-r--r-- | deps/v8/src/inspector/debugger-script.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/v8/src/inspector/debugger-script.js b/deps/v8/src/inspector/debugger-script.js index d9cb12a09a..89f0d75903 100644 --- a/deps/v8/src/inspector/debugger-script.js +++ b/deps/v8/src/inspector/debugger-script.js @@ -402,10 +402,9 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror) */ function contextId() { - var mirror = ensureFuncMirror(); - var context = mirror.context(); - if (context && context.data()) - return Number(context.data()); + var context = + ensureFuncMirror().context() || ensureScriptMirror().context(); + if (context && context.data()) return Number(context.data()); return 0; } |