We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d72f081 commit 107d97bCopy full SHA for 107d97b
src/highlight.js
@@ -33,8 +33,8 @@ https://highlightjs.org/
33
objectKeys = Object.keys;
34
35
// Global internal variables used within the highlight.js library.
36
- var languages = {},
37
- aliases = {};
+ var languages = Object.create(null),
+ aliases = Object.create(null);
38
39
// safe/production mode - swallows more errors, tries to keep running
40
// even if a single syntax or parse hits a fatal error
0 commit comments