Skip to content

Commit

Permalink
Remove needless wrapper for from_moz (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha committed Feb 28, 2024
1 parent 0ef0584 commit b272e76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mozilla-ast.js
Expand Up @@ -618,9 +618,7 @@ import { is_basic_identifier_string } from "./parse.js";
start: my_start_token(M),
end: my_end_token(M),
exported_definition: from_moz(M.declaration),
exported_names: M.specifiers && M.specifiers.length ? M.specifiers.map(function (specifier) {
return from_moz(specifier);
}) : null,
exported_names: M.specifiers && M.specifiers.length ? M.specifiers.map(from_moz) : null,
module_name: from_moz(M.source),
assert_clause: assert_clause_from_moz(M.assertions)
});
Expand Down

0 comments on commit b272e76

Please sign in to comment.