diff --git a/src/root.js b/src/root.js index 6067ca69c..df6f11fa6 100644 --- a/src/root.js +++ b/src/root.js @@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) { /* istanbul ignore if */ if (!callback) return; - if (sync) - throw err; var cb = callback; callback = null; + if (sync) + throw err; cb(err, root); }