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