Skip to content

collectgarbage("count") does not accept other values [v0.10.0 - v0.10.1] #337

@TokenManiac

Description

@TokenManiac

Hello, just today I noticed that any other option than "count" passed into collectgarbage throws the following error in versions v0.10.0 - v0.10.1:

collectgarbage("collect")

test:1: collectgarbage called with invalid option
[Stack Begin]
    Script '[C]'
    Script 'test', Line 1
[Stack End]

Expected behavior:
collectgarbage("collect" | "stop" | "restart" | "step" | "isrunning") should run without errors, as in previous versions.

Actual behavior:
The function throws an “invalid option” error for any option except "count"

This change wasn't specified in the changelog so it may just be a mistake?
Either way it may result in confusion 👍

p.s. thank you for maintaining this awesome project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpending / needs designAwaiting design and/or implementation discussion and decisions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions