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

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

Issue 309013005: DevTools: Event listener breakpoint should not stop if happened inside framework. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: one more test Created 6 years, 6 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 | Annotate | Revision Log
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 Debug.setBreakOnException(); 198 Debug.setBreakOnException();
199 else 199 else
200 Debug.clearBreakOnException(); 200 Debug.clearBreakOnException();
201 201
202 if (DebuggerScript.PauseOnExceptionsState.PauseOnUncaughtExceptions === newS tate) 202 if (DebuggerScript.PauseOnExceptionsState.PauseOnUncaughtExceptions === newS tate)
203 Debug.setBreakOnUncaughtException(); 203 Debug.setBreakOnUncaughtException();
204 else 204 else
205 Debug.clearBreakOnUncaughtException(); 205 Debug.clearBreakOnUncaughtException();
206 } 206 }
207 207
208 DebuggerScript.frameCount = function(execState)
209 {
210 return execState.frameCount();
211 }
212
208 DebuggerScript.currentCallFrame = function(execState, data) 213 DebuggerScript.currentCallFrame = function(execState, data)
209 { 214 {
210 var maximumLimit = data >> 2; 215 var maximumLimit = data >> 2;
211 var scopeDetailsLevel = data & 3; 216 var scopeDetailsLevel = data & 3;
212 217
213 var frameCount = execState.frameCount(); 218 var frameCount = execState.frameCount();
214 if (maximumLimit && maximumLimit < frameCount) 219 if (maximumLimit && maximumLimit < frameCount)
215 frameCount = maximumLimit; 220 frameCount = maximumLimit;
216 var topFrame = undefined; 221 var topFrame = undefined;
217 for (var i = frameCount - 1; i >= 0; i--) { 222 for (var i = frameCount - 1; i >= 0; i--) {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 break; 497 break;
493 case ScopeType.Block: 498 case ScopeType.Block:
494 // Unsupported yet. Mustn't be reachable. 499 // Unsupported yet. Mustn't be reachable.
495 break; 500 break;
496 } 501 }
497 return result; 502 return result;
498 } 503 }
499 504
500 return DebuggerScript; 505 return DebuggerScript;
501 })(); 506 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698