From a228f9bceec4b02cdbea077205ff502bfaa44dc9 Mon Sep 17 00:00:00 2001 From: "soda.wang" Date: Sat, 6 Jan 2018 11:08:04 +0800 Subject: [PATCH] update decode comment --- lib/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index c4622a1..11e7e8e 100644 --- a/lib/context.js +++ b/lib/context.js @@ -113,7 +113,7 @@ class ContextSession { } catch (err) { // backwards compatibility: // create a new session if parsing fails. - // new Buffer(string, 'base64') does not seem to crash + // `Buffer.alloc(size, string, 'base64')` does not seem to crash // when `string` is not base64-encoded. // but `JSON.parse(string)` will crash. debug('decode %j error: %s', cookie, err);