Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: Source/WebCore/bindings/v8/DebuggerScript.js

Issue 8017006: Merge 95083 - Web Inspector: [v8] building call frame info for location-less internal script func... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 scopeType.push(scopeMirror.scopeType()); 257 scopeType.push(scopeMirror.scopeType());
258 scopeChain.push(scopeObject); 258 scopeChain.push(scopeObject);
259 } 259 }
260 260
261 function evaluate(expression) { 261 function evaluate(expression) {
262 return frameMirror.evaluate(expression, false).value(); 262 return frameMirror.evaluate(expression, false).value();
263 } 263 }
264 264
265 return { 265 return {
266 "sourceID": sourceID, 266 "sourceID": sourceID,
267 "line": location.line, 267 "line": location ? location.line : 0,
268 "column": location.column, 268 "column": location ? location.column : 0,
269 "functionName": functionName, 269 "functionName": functionName,
270 "thisObject": thisObject, 270 "thisObject": thisObject,
271 "scopeChain": scopeChain, 271 "scopeChain": scopeChain,
272 "scopeType": scopeType, 272 "scopeType": scopeType,
273 "evaluate": evaluate, 273 "evaluate": evaluate,
274 "caller": callerFrame 274 "caller": callerFrame
275 }; 275 };
276 } 276 }
277 277
278 return DebuggerScript; 278 return DebuggerScript;
279 })(); 279 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698