From f519a470f1b08aaed9af734eecf62a955b615cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 19 Mar 2020 16:13:35 -0400 Subject: [PATCH] address review comments --- packages/babel-helper-validator-identifier/src/keyword.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-helper-validator-identifier/src/keyword.js b/packages/babel-helper-validator-identifier/src/keyword.js index d2140669ea1d..d062275cc022 100644 --- a/packages/babel-helper-validator-identifier/src/keyword.js +++ b/packages/babel-helper-validator-identifier/src/keyword.js @@ -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