mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
minimongo: make idStringify behavior match comment
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user