From 3d6390b32b71f07fc4711a35bad4f8f47ad24d9d Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 28 Sep 2017 17:32:56 -0300 Subject: [PATCH] stream: fix todo With the update to v8 6.1 this todo can now be addressed. PR-URL: https://github.com/nodejs/node/pull/15667 Reviewed-By: Colin Ihrig Reviewed-By: Benedikt Meurer Reviewed-By: Yuta Hiroto Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- lib/_stream_readable.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 1a0bc8902ac802..123a4f3558e103 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -26,9 +26,7 @@ Readable.ReadableState = ReadableState; const EE = require('events'); const Stream = require('stream'); -// TODO(bmeurer): Change this back to const once hole checks are -// properly optimized away early in Ignition+TurboFan. -var Buffer = require('buffer').Buffer; +const Buffer = require('buffer').Buffer; const util = require('util'); const debug = util.debuglog('stream'); const BufferList = require('internal/streams/BufferList');