File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ matrix:
13
13
node_js : ' 7'
14
14
env : WEBPACK_VERSION="2.2.0" JOB_PART=test
15
15
- os : linux
16
- node_js : ' 4.3 '
16
+ node_js : ' 4'
17
17
env : WEBPACK_VERSION="2.2.0" JOB_PART=test
18
18
- os : linux
19
19
node_js : ' 6'
Original file line number Diff line number Diff line change
1
+ // Node v4 requires "use strict" to allow block scoped let & const
2
+ "use strict" ;
3
+
1
4
describe ( "basic tests" , function ( ) {
2
5
var path = require ( "path" ) ;
3
6
Original file line number Diff line number Diff line change
1
+ // Node v4 requires "use strict" to allow block scoped let & const
2
+ "use strict" ;
3
+
1
4
var MemoryFS = require ( "memory-fs" ) ;
2
5
var realFs = require ( "fs" ) ;
3
6
var webpack = require ( "webpack" ) ;
@@ -39,9 +42,9 @@ module.exports = {
39
42
compiler . inputFileSystem [ fn ] = function ( _path ) {
40
43
// Fallback to real FS if file is not in the memoryFS
41
44
if ( fs . existsSync ( _path ) ) {
42
- return fs [ "mem" + fn ] ( ... arguments ) ;
45
+ return fs [ "mem" + fn ] . apply ( fs , arguments ) ;
43
46
} else {
44
- return realFs [ fn ] ( ... arguments ) ;
47
+ return realFs [ fn ] . apply ( realFs , arguments ) ;
45
48
}
46
49
} ;
47
50
} ) ;
You can’t perform that action at this time.
0 commit comments