mirror of
https://github.com/ChipmunkMC/node-brigadier-commands.git
synced 2024-11-14 19:14:55 -05:00
Fix __proto__
This commit is contained in:
parent
7ba05a6d4e
commit
057fadae34
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue