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

Side by Side Diff: src/debug-delay.js

Issue 552068: Fix disable_break parameter (Closed)
Patch Set: merge Created 10 years, 11 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
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 1697
1698 // Check for legal arguments. 1698 // Check for legal arguments.
1699 if (!IS_UNDEFINED(frame) && global) { 1699 if (!IS_UNDEFINED(frame) && global) {
1700 return response.failed('Arguments "frame" and "global" are exclusive'); 1700 return response.failed('Arguments "frame" and "global" are exclusive');
1701 } 1701 }
1702 1702
1703 // Global evaluate. 1703 // Global evaluate.
1704 if (global) { 1704 if (global) {
1705 // Evaluate in the global context. 1705 // Evaluate in the global context.
1706 response.body = 1706 response.body =
1707 this.exec_state_.evaluateGlobal(expression), Boolean(disable_break); 1707 this.exec_state_.evaluateGlobal(expression, Boolean(disable_break));
1708 return; 1708 return;
1709 } 1709 }
1710 1710
1711 // Default value for disable_break is true. 1711 // Default value for disable_break is true.
1712 if (IS_UNDEFINED(disable_break)) { 1712 if (IS_UNDEFINED(disable_break)) {
1713 disable_break = true; 1713 disable_break = true;
1714 } 1714 }
1715 1715
1716 // No frames no evaluate in frame. 1716 // No frames no evaluate in frame.
1717 if (this.exec_state_.frameCount() == 0) { 1717 if (this.exec_state_.frameCount() == 0) {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 case 'string': 2064 case 'string':
2065 case 'number': 2065 case 'number':
2066 json = value; 2066 json = value;
2067 break 2067 break
2068 2068
2069 default: 2069 default:
2070 json = null; 2070 json = null;
2071 } 2071 }
2072 return json; 2072 return json;
2073 } 2073 }
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698