From 0423e6b7cc8abc1a52410653bbd632d7943a34b8 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 26 May 2020 15:38:59 -0700 Subject: [PATCH] =?UTF-8?q?zjsunit:=20Remove=20pointless=20reassignment=20?= =?UTF-8?q?of=20=E2=80=98module=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- frontend_tests/zjsunit/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js index 38bdfa338f..0fcd574acc 100644 --- a/frontend_tests/zjsunit/index.js +++ b/frontend_tests/zjsunit/index.js @@ -63,9 +63,8 @@ global.stub_templates = handlebars.stub_templates; const noop = function () {}; // Set up fake module.hot -// eslint-disable-next-line no-native-reassign -module = require('module'); -module.prototype.hot = { +const Module = require('module'); +Module.prototype.hot = { accept: noop, };