diff --git a/lib/context/CommandContextBuilder.js b/lib/context/CommandContextBuilder.js index 8669956..41c7857 100644 --- a/lib/context/CommandContextBuilder.js +++ b/lib/context/CommandContextBuilder.js @@ -4,7 +4,7 @@ const CommandContext = require('./CommandContext.js') const SuggestionContext = require('./SuggestionContext.js') class CommandContextBuilder { - arguments = {} + arguments = Object.create(null) nodes = [] modifier = null forks = false diff --git a/lib/tree/CommandNode.js b/lib/tree/CommandNode.js index 45a8807..ee38cb9 100644 --- a/lib/tree/CommandNode.js +++ b/lib/tree/CommandNode.js @@ -1,9 +1,9 @@ let ArgumentCommandNode, LiteralCommandNode, RootCommandNode class CommandNode { - children = {} - literals = {} - arguments = {} + children = Object.create(null) + literals = Object.create(null) + arguments = Object.create(null) constructor ({ command, requirement, redirect, modifier, forks = false }) { this.command = command