Skip to content
Snippets Groups Projects
Commit 76c97344 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[runmode addon] Fix missing parameter in runmode.node.js

Closes #2188
parent 53b129bf
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ exports.getMode = function(options, spec) {
};
exports.registerHelper = exports.registerGlobalHelper = Math.min;
exports.runMode = function(string, modespec, callback) {
exports.runMode = function(string, modespec, callback, options) {
var mode = exports.getMode({indentUnit: 2}, modespec);
var lines = splitLines(string), state = (options && options.state) || exports.startState(mode);
for (var i = 0, e = lines.length; i < e; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment