Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 19, 2020
1 parent ebc7d93 commit f519a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-helper-validator-identifier/src/keyword.js
Expand Up @@ -58,9 +58,9 @@ const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
/**
* Checks if word is a reserved word in non-strict mode
*/
export const isReservedWord = (word: string, inModule: boolean): boolean => {
export function isReservedWord(word: string, inModule: boolean): boolean {
return (inModule && word === "await") || word === "enum";
};
}

/**
* Checks if word is a reserved word in non-binding strict mode
Expand Down

0 comments on commit f519a47

Please sign in to comment.