Skip to content

Commit d51996f

Browse files
committed
bug fix
1 parent a5f1fa5 commit d51996f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/execLoaders.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ module.exports = function(context, request, loaders, filenames, contents, cacheE
111111
}
112112
done = true;
113113
contents = [err];
114-
for(var i = 0; i < arguments.length; i++) {
114+
for(var i = 1; i < arguments.length; i++) {
115115
var arg = arguments[i];
116116
if(arg instanceof Buffer)
117117
contents.push(arg);
118118
else if(typeof arg === "string")
119119
contents.push(new Buffer(arg, "utf-8"));
120+
else
121+
contents.push(arg);
120122
}
121123
loaderFinished.apply(null, arguments);
122124
},

0 commit comments

Comments
 (0)