Skip to content

Commit bf419d2

Browse files
author
Rob Raux
committed
fix global variable leaks
1 parent e346533 commit bf419d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/connection.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ Connection.prototype.parseZ = function(buffer, length) {
460460
return msg;
461461
};
462462

463-
ROW_DESCRIPTION = 'rowDescription';
463+
var ROW_DESCRIPTION = 'rowDescription';
464464
Connection.prototype.parseT = function(buffer, length) {
465465
var msg = new Message(ROW_DESCRIPTION, length);
466466
msg.fieldCount = this.parseInt16(buffer);
@@ -482,8 +482,8 @@ var Field = function() {
482482
this.format = null;
483483
};
484484

485-
FORMAT_TEXT = 'text';
486-
FORMAT_BINARY = 'binary';
485+
var FORMAT_TEXT = 'text';
486+
var FORMAT_BINARY = 'binary';
487487
Connection.prototype.parseField = function(buffer) {
488488
var field = new Field();
489489
field.name = this.parseCString(buffer);
@@ -502,7 +502,7 @@ Connection.prototype.parseField = function(buffer) {
502502
return field;
503503
};
504504

505-
DATA_ROW = 'dataRow';
505+
var DATA_ROW = 'dataRow';
506506
var DataRowMessage = function(name, length, fieldCount) {
507507
this.name = DATA_ROW;
508508
this.length = length;

0 commit comments

Comments
 (0)