Skip to content

Commit 79926b3

Browse files
Kyle TruongKyle Truong
authored andcommitted
- Edit PR to use normal functions again due to ‘arguments’ not working with arrow functions
- reverse timeout change back to normal in NodeWatchFileSystem.test.js
1 parent 4266ab8 commit 79926b3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class Compiler extends Tapable {
195195
});
196196
});
197197
},
198-
apply: () => {
198+
apply: function() {
199199
const args = arguments;
200200
if(!deprecationReported) {
201201
console.warn("webpack: Using compiler.parser is deprecated.\n" +
@@ -208,7 +208,7 @@ class Compiler extends Tapable {
208208
parser.apply.apply(parser, args);
209209
});
210210
});
211-
}
211+
}.bind(this)
212212
};
213213

214214
this.options = {};

test/NodeWatchFileSystem.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("NodeWatchFileSystem", function() {
5757
var fileDirect = path.join(fixtures, "watched-file.txt");
5858
var fileSubdir = path.join(fixtures, "subdir", "watched-file.txt");
5959

60-
this.timeout(20000);
60+
this.timeout(10000);
6161

6262
it("should register a file change (change delayed)", function(done) {
6363
var startTime = new Date().getTime();

0 commit comments

Comments
 (0)