mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Added test case with bind.
This commit is contained in:
@@ -63,3 +63,12 @@ import { MyWebSocket, MySockJS, myWebSocketInstance, mySockJSInstance } from './
|
||||
console.log('Using addEventListener ', event.data);
|
||||
}); // $ clientReceive
|
||||
})();
|
||||
|
||||
|
||||
const recv_message = function (e) {
|
||||
console.log('Received message:', e.data);
|
||||
}; // $ MISSING: clientReceive
|
||||
|
||||
(function () {
|
||||
myWebSocketInstance.onmessage = recv_message.bind(this);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user