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') const SuggestionContext = require('./SuggestionContext.js')
class CommandContextBuilder { class CommandContextBuilder {
arguments = {} arguments = Object.create(null)
nodes = [] nodes = []
modifier = null modifier = null
forks = false forks = false

View file

@ -1,9 +1,9 @@
let ArgumentCommandNode, LiteralCommandNode, RootCommandNode let ArgumentCommandNode, LiteralCommandNode, RootCommandNode
class CommandNode { class CommandNode {
children = {} children = Object.create(null)
literals = {} literals = Object.create(null)
arguments = {} arguments = Object.create(null)
constructor ({ command, requirement, redirect, modifier, forks = false }) { constructor ({ command, requirement, redirect, modifier, forks = false }) {
this.command = command this.command = command