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

Unified Diff: sky/framework/inspector/inspector.sky

Issue 742583004: Make breakpoints not crash sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: sky/framework/inspector/inspector.sky
diff --git a/sky/framework/inspector/inspector.sky b/sky/framework/inspector/inspector.sky
index b5f3f12ef7d7fddf6f8b7f88dab0bc90dc799529..67d34d05b9712b0b014253342bc9d89bc76295b4 100644
--- a/sky/framework/inspector/inspector.sky
+++ b/sky/framework/inspector/inspector.sky
@@ -82,12 +82,11 @@ InspectorBackend.prototype.onMessage = function(data) {
if (result != this.ASYNC_RESPONSE)
this.sendResponse(message.id, result);
else {
- window.setTimeout(function(message_id) {
- if (this.unansweredMessages_.indexOf(message_id) == -1)
+ window.setTimeout(function() {
+ if (this.unansweredMessages_.indexOf(message.id) == -1)
return;
- console.log("Error, failed to reply to " + descriptor
- + " message id " + message_id);
- }, this.MESSAGE_TIMEOUT_MS, this, message.id);
+ console.log("Error, failed to reply to message id " + message.id);
+ }.bind(this), this.MESSAGE_TIMEOUT_MS);
}
};

Powered by Google App Engine
This is Rietveld 408576698