Chromium Code Reviews| Index: src/debug-debugger.js |
| diff --git a/src/debug-debugger.js b/src/debug-debugger.js |
| index 8cbe0b362cf423f7c8c70a94094aace081dd5b8f..9a726ae8bd2659c5b5a82a73866df6d1f9b34419 100644 |
| --- a/src/debug-debugger.js |
| +++ b/src/debug-debugger.js |
| @@ -1349,7 +1349,9 @@ ProtocolMessage.prototype.toJSONProtocol = function() { |
| bodyJson = ObjectToProtocolObject_(this.body, serializer); |
| } |
| json.body = bodyJson; |
| - json.refs = serializer.serializeReferencedObjects(); |
| + if (!this.options_.noRefs) { |
| + json.refs = serializer.serializeReferencedObjects(); |
| + } |
| } |
| if (this.message) { |
| json.message = this.message; |
| @@ -1395,6 +1397,9 @@ DebugCommandProcessor.prototype.processDebugJSONRequest = function( |
| if (args.inlineRefs || args.compactFormat) { |
| response.setOption('inlineRefs', true); |
|
Peter Rybin
2011/12/14 01:20:18
Why includeRefs couldn't be re-used for your ends
|
| } |
| + if (args.noRefs) { |
| + response.setOption('noRefs', true); |
| + } |
| if (!IS_UNDEFINED(args.maxStringLength)) { |
| response.setOption('maxStringLength', args.maxStringLength); |
| } |