hello and unpack() issue.

  • From: Matt Gerassimoff <mgeras@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 10 Sep 2021 07:01:44 -0700

Hello,

This is my first post to the list.  I've been using luajit for several
years now.  It's my scripting language of choice.  I think I've discovered
a bug/issue with unpack().  I'm running luajit-2.1 built with the latest
git commit with gc64 and 5.2 compatibility enabled.  If I run:
`print(unpack({1,nil,2,nil,3,n=5}))`
I get:
`1`
from my version.  When I do the same thing in lua 5.1 I get:
`1 nil 2 nil 3'
I've also tried lua 5.2 and beyond which returns the same results as 5.1.

I've tested this on x64 and arm64 architectures. I don't believe that would
be expected behaviour.  If there is somewhere to submit bug reports, I'll
gladly do that.

Thanks

Other related posts: