From 4cd63ca3707701edeb20d036659184951fbfd2af Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Wed, 10 Jul 2013 04:11:00 -0700 Subject: [PATCH] minimongo: make idStringify behavior match comment --- packages/minimongo/minimongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/minimongo/minimongo.js b/packages/minimongo/minimongo.js index da65f69631..3a5976b10d 100644 --- a/packages/minimongo/minimongo.js +++ b/packages/minimongo/minimongo.js @@ -841,7 +841,7 @@ LocalCollection._idStringify = function (id) { } } else if (id === undefined) { return '-'; - } else if (typeof id === 'object') { + } else if (typeof id === 'object' && id !== null) { throw new Error("Meteor does not currently support objects other than ObjectID as ids"); } else { // Numbers, true, false, null return "~" + JSON.stringify(id);