From ba54b583c305fd05a93a050fb8fb6dc8a8c88a4d 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 a863b3c37d..081d1592f6 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');