Skip to content

Commit fd16aeb

Browse files
committed
Merge pull request #270 from node-migrator-bot/clean
Hi! I fixed some calls to "sys" for you!
2 parents ccd8f84 + bf7e328 commit fd16aeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vendor/websocket.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var http = require('http');
3838
var https = require('https');
3939
var net = require('net');
4040
var urllib = require('url');
41-
var sys = require('sys');
41+
var util = require('util');
4242

4343
var FRAME_NO = 0;
4444
var FRAME_LO = 1;
@@ -52,7 +52,7 @@ var CLOSED = 3;
5252

5353
var debugLevel = parseInt(process.env.NODE_DEBUG, 16);
5454
var debug = (debugLevel & 0x4) ?
55-
function() { sys.error.apply(this, arguments); } :
55+
function() { util.error.apply(this, arguments); } :
5656
function() { };
5757

5858
// Generate a Sec-WebSocket-* value
@@ -246,7 +246,7 @@ var WebSocket = function(url, proto, opts) {
246246

247247
// FRAME_LO
248248
function(buf, off) {
249-
debug('frame_lo(' + sys.inspect(buf) + ', ' + off + ')');
249+
debug('frame_lo(' + util.inspect(buf) + ', ' + off + ')');
250250

251251
// Find the first instance of 0xff, our terminating byte
252252
for (var i = off; i < buf.length && buf[i] != 0xff; i++)
@@ -306,7 +306,7 @@ var WebSocket = function(url, proto, opts) {
306306

307307
// FRAME_HI
308308
function(buf, off) {
309-
debug('frame_hi(' + sys.inspect(buf) + ', ' + off + ')');
309+
debug('frame_hi(' + util.inspect(buf) + ', ' + off + ')');
310310

311311
if (buf[off] !== 0) {
312312
throw new Error('High-byte framing not supported.');
@@ -323,7 +323,7 @@ var WebSocket = function(url, proto, opts) {
323323
return;
324324
}
325325

326-
debug('dataListener(' + sys.inspect(buf) + ')');
326+
debug('dataListener(' + util.inspect(buf) + ')');
327327

328328
var off = 0;
329329
var consumed = 0;
@@ -624,7 +624,7 @@ var WebSocket = function(url, proto, opts) {
624624
httpReq.end();
625625
})();
626626
};
627-
sys.inherits(WebSocket, events.EventEmitter);
627+
util.inherits(WebSocket, events.EventEmitter);
628628
exports.WebSocket = WebSocket;
629629

630630
// Add some constants to the WebSocket object

0 commit comments

Comments
 (0)