| Index: src/inspector/debugger-script.js
|
| diff --git a/src/inspector/debugger-script.js b/src/inspector/debugger-script.js
|
| index 766964df236ab15e9c65c2f1b4fccc2a2d264fee..b8af7f3baa2139816c5b703e80360afe9bd13d2d 100644
|
| --- a/src/inspector/debugger-script.js
|
| +++ b/src/inspector/debugger-script.js
|
| @@ -144,20 +144,6 @@ DebuggerScript.getCollectionEntries = function(object)
|
| }
|
|
|
| /**
|
| - * @param {string|undefined} contextData
|
| - * @return {number}
|
| - */
|
| -DebuggerScript._executionContextId = function(contextData)
|
| -{
|
| - if (!contextData)
|
| - return 0;
|
| - var match = contextData.match(/^[^,]*,([^,]*),.*$/);
|
| - if (!match)
|
| - return 0;
|
| - return parseInt(match[1], 10) || 0;
|
| -}
|
| -
|
| -/**
|
| * @param {!ExecutionState} execState
|
| * @param {!BreakpointInfo} info
|
| * @return {string|undefined}
|
| @@ -485,12 +471,9 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
|
| function contextId()
|
| {
|
| var mirror = ensureFuncMirror();
|
| - // Old V8 do not have context() function on these objects
|
| - if (!mirror.context)
|
| - return DebuggerScript._executionContextId(mirror.script().value().context_data);
|
| var context = mirror.context();
|
| - if (context)
|
| - return DebuggerScript._executionContextId(context.data());
|
| + if (context && context.data())
|
| + return Number(context.data());
|
| return 0;
|
| }
|
|
|
|
|