Permalink
Browse files

[runmode addon] Fixed resolveMode in runmode.node

This fix has been modelled after the getMode function in runmode.node in
v3.20.0
  • Loading branch information...
1 parent bed5c81 commit 5581979d2c624d6c32342e50bb417749ad799ee7 @amsul amsul committed with marijnh Jan 31, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 addon/runmode/runmode.node.js
@@ -92,7 +92,7 @@ exports.resolveMode = function(spec) {
else return spec || {name: "null"};
};
exports.getMode = function(options, spec) {
- spec = exports.resolveMode(mimeModes[spec]);
+ spec = exports.resolveMode(spec);
var mfactory = modes[spec.name];
if (!mfactory) throw new Error("Unknown mode: " + spec);
return mfactory(options, spec);

0 comments on commit 5581979

Please sign in to comment.