Skip to content

Commit

Permalink
fix: error should be thrown (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
binsee authored Jan 24, 2023
1 parent 82f55e6 commit e7a3489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) {
/* istanbul ignore if */
if (!callback)
return;
var cb = callback;
callback = null;
if (sync)
throw err;
var cb = callback;
callback = null;
cb(err, root);
}

Expand Down

0 comments on commit e7a3489

Please sign in to comment.