Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
2.0.10
-
Security Level: Public
-
None
-
Mac OS X, Couchbase Server 3.0.1
Description
The docs state that options is an optional parameter. I would expect that the following 'options' combinations should work:
1) null
2) {}
3) object with cas, persist_to and/or replicate_to
The issue: passing 'options' as null returns the following error: TypeError: Cannot read property 'hashkey' of null
Example:
options = (options ? options : null);
bucket.remove(key, options, function (err, result)
{ .... });
If I replace the line above with the following, it works fine:
options = (options ? options : {});