docs: remove wrong information code comment

This commit is contained in:
Mariusz Nowak
2018-01-30 12:03:05 +01:00
parent 26076c4ee7
commit 5bb5e1d93b

View File

@@ -84,7 +84,7 @@ require("../lib/registered-extensions").promise = function (mode, conf) {
promise.done(onSuccess, onFailure);
} else if (resolvedMode === "done:finally") {
// The only mode with no side effects assuming library does not throw unconditionally
// for rejected promises. Otherwise then:finally mode should be used instead
// for rejected promises.
if (typeof promise.done !== "function") {
throw new Error(
"Memoizee error: Retrieved promise does not implement 'done' " +