Skip to content

Commit

Permalink
Avoid crash from previous patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Dec 21, 2022
1 parent e708a22 commit 11340a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acorn/src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function getOptions(opts) {
if (options.allowReserved == null)
options.allowReserved = options.ecmaVersion < 5

if (opts.allowHashBang == null)
if (!opts || opts.allowHashBang == null)
options.allowHashBang = options.ecmaVersion >= 14

if (isArray(options.onToken)) {
Expand Down

0 comments on commit 11340a4

Please sign in to comment.