Skip to content

Commit e7a3489

Browse files
authoredJan 24, 2023
fix: error should be thrown (#1817)
1 parent 82f55e6 commit e7a3489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/root.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) {
9898
/* istanbul ignore if */
9999
if (!callback)
100100
return;
101-
var cb = callback;
102-
callback = null;
103101
if (sync)
104102
throw err;
103+
var cb = callback;
104+
callback = null;
105105
cb(err, root);
106106
}
107107

0 commit comments

Comments
 (0)
Please sign in to comment.