Fix __proto__

This commit is contained in:
Chipmunk 2023-09-15 16:07:25 -04:00
parent 7ba05a6d4e
commit 057fadae34
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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