diff --git a/src/LuauAST/util/isReservedIdentifier.ts b/src/LuauAST/util/isReservedIdentifier.ts index 57d0f1c..76d900e 100644 --- a/src/LuauAST/util/isReservedIdentifier.ts +++ b/src/LuauAST/util/isReservedIdentifier.ts @@ -1,5 +1,5 @@ import { globals } from "LuauAST/impl/globals"; export function isReservedIdentifier(id: string) { - return id in globals; + return Object.prototype.hasOwnProperty.call(globals, id); }