mirror of https://github.com/webpack/webpack.git
fixup function to be able to use arguments
This commit is contained in:
parent
d467eabf4c
commit
ebb82b73e7
|
@ -1,7 +1,7 @@
|
||||||
|
/*globals describe it */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*globals describe it */
|
require("should");
|
||||||
const should = require("should");
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ describe("Stats", () => {
|
||||||
compilers.forEach((c) => {
|
compilers.forEach((c) => {
|
||||||
const ifs = c.inputFileSystem;
|
const ifs = c.inputFileSystem;
|
||||||
c.inputFileSystem = Object.create(ifs);
|
c.inputFileSystem = Object.create(ifs);
|
||||||
c.inputFileSystem.readFile = () => {
|
c.inputFileSystem.readFile = function() {
|
||||||
const args = Array.prototype.slice.call(arguments);
|
const args = Array.prototype.slice.call(arguments);
|
||||||
const callback = args.pop();
|
const callback = args.pop();
|
||||||
ifs.readFile.apply(ifs, args.concat([(err, result) => {
|
ifs.readFile.apply(ifs, args.concat([(err, result) => {
|
||||||
|
|
Loading…
Reference in New Issue