Skip to content

Lua 5.3 STD string.pack incorrect signature #499

@checkraisefold

Description

@checkraisefold

The current signature for string.pack in the default Lua 5.3 STD is:

  string.pack:
    args:
      - type: string
    must_use: true

The correct signature, which is correct in the Luau STD, is:

  string.pack:
    args:
      - type: string
      - type: ...
    must_use: true

The same issue exists with string.unpack. This issue causes any usage of these functions that actually works to throw a selene warning, considering the function requires 2 arguments to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-standard-libraryArea: Standard LibraryC-bugCategory: BugE-easyCall for participation: Experience needed to fix: Easy / not much

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions