Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit a782875

Browse files
author
Matt Loring
committed
Cleanup todos
1 parent a95b308 commit a782875

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

lib/debuglet.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ Debuglet.prototype.scheduleRegistration_ = function(seconds) {
138138
that.logger_.error('Failed to re-register debuggee: ' + err);
139139
that.logger_.error('Disabling gcloud debuglet');
140140
that.stop(); // fatal error
141-
// TODO: unless this is a configuration/fatal problem, maybe we should try
142-
// again after a larger delay?
143141
}
144142

145143
setTimeout(function() {

lib/scanner.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ function computeStats(fileList, callback) {
6767
if (pending === 0) {
6868
// Sort the hashes to get a deterministic order as the files may not
6969
// be in the same order each time we scan the disk.
70-
// TODO: it might be faster to sort if we had a binary hash instead
71-
// of a string.
7270
var buffer = hashes.sort().join();
7371
var sha1 = crypto.createHash('sha1').update(buffer).digest('hex');
7472
callback(null, 'SHA1-' + sha1, statistics);

lib/state.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = {
2121
evaluate: evaluate
2222
};
2323

24-
//var util = require('util');
2524
var assert = require('assert');
2625

2726
var StatusMessage = require('./apiclasses.js').StatusMessage;
@@ -332,11 +331,7 @@ StateResolver.prototype.resolveVariable_ = function(name, value) {
332331
};
333332

334333
StateResolver.prototype.getVariableIndex_ = function(value) {
335-
// TODO(ofrobots): Once V8 de-optimization issue is fixed, come back and
336-
// re-evaluate this method. The naïve indexOf scan be sped up by monkey
337-
// patching the value mirror object with an index. Not sure if it is
338-
// significantly faster to be worth doing at this point.
339-
var idx = this.rawVariableTable_.indexOf(value);
334+
var idx = this.rawVariableTable_.indexOf(value);
340335
if (idx === -1) {
341336
idx = this.storeObjectToVariableTable_(value);
342337
}

lib/v8debugapi.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ module.exports.create = function(logger_, config_, fileStats_) {
143143
messages.ERROR_COMPILING_CONDITION);
144144
}
145145
}
146-
// TODO: more robust file finding of compiled files
147146
scriptPath = scriptPath.substr(0, scriptPath.lastIndexOf('.')) + '.js';
148147
var mappingUrl = scriptPath + '.map';
149148

@@ -231,7 +230,6 @@ module.exports.create = function(logger_, config_, fileStats_) {
231230
function setInternal(breakpoint, scriptPath, compile, cb) {
232231
// Parse and validate conditions and watch expressions for correctness and
233232
// immutability
234-
// TODO: make it an option for users to disable validation
235233
var ast = null;
236234
if (breakpoint.condition) {
237235
var acorn = require('acorn');
@@ -273,9 +271,6 @@ module.exports.create = function(logger_, config_, fileStats_) {
273271
StatusMessage.BREAKPOINT_SOURCE_LOCATION,
274272
messages.SOURCE_FILE_AMBIGUOUS);
275273
}
276-
// TODO: need to cleanup the above
277-
// TODO: need test coverage for the above
278-
// TODO: work with debug server to come up with a more robust solution
279274

280275
if (breakpoint.location.line >= fileStats[matchingScript].lines) {
281276
return setErrorStatusAndCallback(cb, breakpoint,
@@ -509,7 +504,6 @@ module.exports.create = function(logger_, config_, fileStats_) {
509504
return { value: true };
510505
}
511506

512-
// TODO: we already parsed breakpoint.condition before -- pass it somehow
513507
var result = state.evaluate(breakpoint.condition, execState.frame(0));
514508

515509
if (result.error) {

0 commit comments

Comments
 (0)