Skip to content

Commit

Permalink
parse: update warning argument naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Apr 18, 2024
1 parent a979c86 commit 3ea4d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const loadParser = async (fallbackParser = 'acorn', forceParser) => {
globalThis._porf_loadParser = loadParser;
await loadParser(types ? '@babel/parser' : undefined);

if (types && !['@babel/parser', 'hermes-parser'].includes(parser)) log.warning('parser', `passed -types with a parser (${parser}) which does not support`);
if (types && !['@babel/parser', 'hermes-parser'].includes(parser)) log.warning('parser', `passed -parse-types with a parser (${parser}) which does not support`);

export default (input, flags) => {
try {
Expand Down

0 comments on commit 3ea4d05

Please sign in to comment.