From 79926b3eed4b6559762ed3b4452cc53cad76bfb7 Mon Sep 17 00:00:00 2001 From: Kyle Truong Date: Fri, 7 Jul 2017 10:52:07 -0400 Subject: [PATCH] =?UTF-8?q?-=20Edit=20PR=20to=20use=20normal=20functions?= =?UTF-8?q?=20again=20due=20to=20=E2=80=98arguments=E2=80=99=20not=20worki?= =?UTF-8?q?ng=20with=20arrow=20functions=20-=20reverse=20timeout=20change?= =?UTF-8?q?=20back=20to=20normal=20in=20NodeWatchFileSystem.test.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Compiler.js | 4 ++-- test/NodeWatchFileSystem.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Compiler.js b/lib/Compiler.js index 2bffe29e088..1d9b5a60eb0 100644 --- a/lib/Compiler.js +++ b/lib/Compiler.js @@ -195,7 +195,7 @@ class Compiler extends Tapable { }); }); }, - apply: () => { + apply: function() { const args = arguments; if(!deprecationReported) { console.warn("webpack: Using compiler.parser is deprecated.\n" + @@ -208,7 +208,7 @@ class Compiler extends Tapable { parser.apply.apply(parser, args); }); }); - } + }.bind(this) }; this.options = {}; diff --git a/test/NodeWatchFileSystem.test.js b/test/NodeWatchFileSystem.test.js index b442f2d9421..c684445dd81 100644 --- a/test/NodeWatchFileSystem.test.js +++ b/test/NodeWatchFileSystem.test.js @@ -57,7 +57,7 @@ describe("NodeWatchFileSystem", function() { var fileDirect = path.join(fixtures, "watched-file.txt"); var fileSubdir = path.join(fixtures, "subdir", "watched-file.txt"); - this.timeout(20000); + this.timeout(10000); it("should register a file change (change delayed)", function(done) { var startTime = new Date().getTime();