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 153c057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions packages/babel-types/package.json
Expand Up @@ -12,10 +12,10 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"dependencies": {
"@babel/helper-validator-identifier": "^7.9.0",
"esutils": "^2.0.2",
"lodash": "^4.17.13",
"to-fast-properties": "^2.0.0",
"@babel/helper-validator-identifier": "^7.9.0"
"to-fast-properties": "^2.0.0"
},
"devDependencies": {
"@babel/generator": "^7.8.7",
Expand Down

0 comments on commit 153c057

Please sign in to comment.