Skip to content

Commit

Permalink
Use explicit prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireboltofdeath committed Sep 26, 2023
1 parent 7be3091 commit 6d8f578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LuauAST/util/isReservedIdentifier.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { globals } from "LuauAST/impl/globals";

export function isReservedIdentifier(id: string) {
return globals.hasOwnProperty(id);
return Object.prototype.hasOwnProperty.call(globals, id);
}

0 comments on commit 6d8f578

Please sign in to comment.