Skip to content

pop(!) allows unlimited number of arguments #663

@edsrzf

Description

@edsrzf

What happened?

This code is allowed: (pop [1 2 3] 0 1). It mostly behaves the same as (pop [1 2 3] 0), but leaves an extra value on the VM stack. (pop! also accepts extra arguments.)

The compiler validates that pop and pop! are called with at least 2 arguments, but it should validate that they are called with exactly 2.

What ArkScript version are you seeing the problem on?

v4.4.1

Operating System

Linux

Compiler used

None

Compiler version used

No response

Relevant code & log output

Documentation

  • I have read existing related documentation before submitting this report
  • I have searched for an existing issue before posting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions