fix(converter.js): add error if the passed argument is not an object

This commit is contained in:
Estevao Soares dos Santos 2015-06-03 01:29:44 +01:00
parent 33f64f60c9
commit d86ed450a8

View File

@ -76,6 +76,9 @@ showdown.Converter = function (converterOptions) {
options[opt] = converterOptions[opt];
}
}
} else {
throw Error('Converter expects the passed parameter to be an object, but ' + typeof converterOptions +
' was passed instead.')
}
if (options.extensions) {