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

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

Issue 647022: Add maxStrinLength argument to debugger requests (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « no previous file | src/mirror-delay.js » ('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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 } 1195 }
1196 1196
1197 if (request.type != 'request') { 1197 if (request.type != 'request') {
1198 throw new Error("Illegal type '" + request.type + "' in request"); 1198 throw new Error("Illegal type '" + request.type + "' in request");
1199 } 1199 }
1200 1200
1201 if (!request.command) { 1201 if (!request.command) {
1202 throw new Error('Command not specified'); 1202 throw new Error('Command not specified');
1203 } 1203 }
1204 1204
1205 // TODO(yurys): remove request.arguments.compactFormat check once 1205 if (request.arguments) {
1206 // ChromeDevTools are switched to 'inlineRefs' 1206 var args = request.arguments;
1207 if (request.arguments && (request.arguments.inlineRefs || 1207 // TODO(yurys): remove request.arguments.compactFormat check once
1208 request.arguments.compactFormat)) { 1208 // ChromeDevTools are switched to 'inlineRefs'
1209 response.setOption('inlineRefs', true); 1209 if (args.inlineRefs || args.compactFormat) {
1210 response.setOption('inlineRefs', true);
1211 }
1212 if (!IS_UNDEFINED(args.maxStringLength)) {
1213 response.setOption('maxStringLength', args.maxStringLength);
1214 }
1210 } 1215 }
1211 1216
1212 if (request.command == 'continue') { 1217 if (request.command == 'continue') {
1213 this.continueRequest_(request, response); 1218 this.continueRequest_(request, response);
1214 } else if (request.command == 'break') { 1219 } else if (request.command == 'break') {
1215 this.breakRequest_(request, response); 1220 this.breakRequest_(request, response);
1216 } else if (request.command == 'setbreakpoint') { 1221 } else if (request.command == 'setbreakpoint') {
1217 this.setBreakPointRequest_(request, response); 1222 this.setBreakPointRequest_(request, response);
1218 } else if (request.command == 'changebreakpoint') { 1223 } else if (request.command == 'changebreakpoint') {
1219 this.changeBreakPointRequest_(request, response); 1224 this.changeBreakPointRequest_(request, response);
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2068 case 'string': 2073 case 'string':
2069 case 'number': 2074 case 'number':
2070 json = value; 2075 json = value;
2071 break 2076 break
2072 2077
2073 default: 2078 default:
2074 json = null; 2079 json = null;
2075 } 2080 }
2076 return json; 2081 return json;
2077 } 2082 }
OLDNEW
« no previous file with comments | « no previous file | src/mirror-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698