From 09949c242a672f258b07f2dbfb9c8662e7853a8c Mon Sep 17 00:00:00 2001 From: muxator Date: Fri, 15 Feb 2019 22:52:53 +0100 Subject: [PATCH] node8: we no longer need to use a shim for Object.values in stats.js --- src/node/stats.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/node/stats.js b/src/node/stats.js index 5ffa8a07b..ff1752fe9 100644 --- a/src/node/stats.js +++ b/src/node/stats.js @@ -1,19 +1,3 @@ -/* - * TODO: this polyfill is needed for Node 6.9 support. - * - * Once minimum supported Node version is raised to 8.9.0, it will be removed. - */ -if (!Object.values) { - var log4js = require('log4js'); - var statsLogger = log4js.getLogger("stats"); - - statsLogger.warn(`Enabling a polyfill to run on this Node version (${process.version}). Next Etherpad version will remove support for Node version < 8.9.0. Please update your runtime.`); - - var values = require('object.values'); - - values.shim(); -} - var measured = require('measured-core') module.exports = measured.createCollection();