Skip to content

Commit

Permalink
Fix leak -- Fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
neumino committed Apr 12, 2014
1 parent a003a4a commit 3309d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,7 @@ Term.prototype.toString = function() {
// Return {isJSON: false, value: <instance of Term>
// Convert as many fields in JSON as possible,
Term.prototype._exprJSON = function(value, nestingLevel, _r) {
var result;
var isJSON;
var result, isJSON, previousKeys;

if (nestingLevel == null) nestingLevel = this._r.nestingLevel;
if (nestingLevel < 0) throw new Error.ReqlDriverError("Nesting depth limit exceeded.\nYou probably have a circular reference somewhere")
Expand Down Expand Up @@ -1016,6 +1015,7 @@ Term.prototype._translateArgs = {
noReply: "noreply",
}
Term.prototype._makeOptArgs = function(r, options) {
var keyServer;
var optargs = [];
for(var key in options) {
if (options[key] !== undefined) {
Expand Down

0 comments on commit 3309d8d

Please sign in to comment.