mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-14 18:42:24 +03:00
chore(core): string node walk plugin test
This commit is contained in:
@@ -19,6 +19,10 @@ export default function bbob(plugs) {
|
||||
const parseFn = options.parser || parse;
|
||||
const renderFn = options.render;
|
||||
|
||||
if (typeof parseFn !== 'function') {
|
||||
throw new Error('"parser" is not a function, please pass to "process(input, { parser })" right function');
|
||||
}
|
||||
|
||||
let tree = options.skipParse
|
||||
? input || []
|
||||
: parseFn(input, options);
|
||||
|
||||
Reference in New Issue
Block a user