Skip to content

Commit

Permalink
- Edit PR to use normal functions again due to ‘arguments’ not workin…
Browse files Browse the repository at this point in the history
…g with arrow functions

- reverse timeout change back to normal in NodeWatchFileSystem.test.js
  • Loading branch information
Kyle Truong authored and Kyle Truong committed Jul 7, 2017
1 parent 4266ab8 commit 79926b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Compiler.js
Expand Up @@ -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" +
Expand All @@ -208,7 +208,7 @@ class Compiler extends Tapable {
parser.apply.apply(parser, args);
});
});
}
}.bind(this)
};

this.options = {};
Expand Down
2 changes: 1 addition & 1 deletion test/NodeWatchFileSystem.test.js
Expand Up @@ -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();
Expand Down

0 comments on commit 79926b3

Please sign in to comment.