From 614c67ec5f782c29960479a74c819079d65b8ccc 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. --- 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');