Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
debugger: use arrow function for lexical this
Refs #7414
  • Loading branch information
originalfoo committed Jun 25, 2016
commit 1e9f97bc8fc4ceb4eb5f1f0a18f66e30342c4ceb
5 changes: 2 additions & 3 deletions lib/_debug_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ function Agent() {
this.binding = process._debugAPI;
assert(this.binding, 'Debugger agent running without bindings!');

var self = this;
this.binding.onmessage = function(msg) {
self.clients.forEach(function(client) {
this.binding.onmessage = (msg) => {
this.clients.forEach((client) => {
client.send({}, msg);
});
};
Expand Down