@el4cteo/rbx-studio-mcp 0.6.7 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -305,7 +305,11 @@ function Exec.run(params: { [string]: any }): { [string]: any }
305
305
 
306
306
  local returned: { any } = {}
307
307
  for index = 2, math.min(results.n, MAX_RETURN_VALUES + 1) do
308
- table.insert(returned, describe(results[index]))
308
+ -- A nil return is written out rather than dropped. `table.insert` of nil
309
+ -- does nothing, so `return a, nil, b` came back as two values and every
310
+ -- one after the nil shifted into the wrong position.
311
+ local value = results[index]
312
+ table.insert(returned, if value == nil then "nil" else describe(value))
309
313
  end
310
314
 
311
315
  return {