Skip to content

bug: package_send ignores nil (or null) values #292

@danim1130

Description

@danim1130

Describe the bug
Sending nil (or null, which LUA will look up as a variable and return nil) is not sent when using package_send

To Reproduce
Steps to reproduce the behavior:

  1. Execute package_send("Package-test", null, false, null, "23", nil, 11). Package receives (false, "23", 11).

Expected behavior
nil should be converted to JS null. Use of null in LUA code can be talked about. Discord uses nil/null to leave a channel.

Environment (please complete the following information):

  • OS: All
  • Editor version: Latest stable

Additional context
Latest nightly firmware

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Todo

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions