diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/vm/value.lua | 6 | ||||
-rw-r--r-- | server/test/full/normal.lua | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index b3cc5f80..76b173a9 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -101,6 +101,9 @@ function mt:getType() end function mt:rawSet(index, value, source) + if index == nil then + return + end if not self._child then self._child = {} end @@ -134,6 +137,9 @@ function mt:rawGet(index) end function mt:setChild(index, value, source) + if index == nil then + return + end self:setType('table', 0.5) self:rawSet(index, value, source) return value diff --git a/server/test/full/normal.lua b/server/test/full/normal.lua index 02b1f4f0..c6897067 100644 --- a/server/test/full/normal.lua +++ b/server/test/full/normal.lua @@ -126,3 +126,7 @@ TEST [[ return function () end ]] + +TEST [[ +t[...] = 1 +]] |