Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Nov 22, 2022
1 parent c922ee1 commit 4f39c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/javascript/JavascriptParser.js
Expand Up @@ -3654,7 +3654,7 @@ class JavascriptParser extends Parser {
} catch (e) {
const newErr = new Error(String(e.message));
newErr.stack = String(e.stack);
newErr.comment = comment;
Object.assign(newErr, { comment });
errors.push(newErr);
}
}
Expand Down

0 comments on commit 4f39c9f

Please sign in to comment.