You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's another issue that I encountered and may be a similar problem:
$ ruby-parse -e'proc { |a| }'(block(sendnil :proc)(args(procarg0(arg:a)))nil)
$ ruby-parse -e'proc { |(a)| }'(block(sendnil :proc)(args(procarg0# <- It's the same! But why?(arg:a)))nil)
$ ruby-parse --legacy -e'proc { |a| }'(block(sendnil :proc)(args# <- In this example Opal (running in legacy mode) checks source for "," to check if procarg0(arg:a))nil)
$ ruby-parse --legacy -e'proc { |(a)| }'(block(sendnil :proc)(args# <- But this is denoted clearly!(mlhs(arg:a)))nil)
$
Yet:
$ ruby -e'p proc { |i| i }.([1,2,3])'[1,2,3]
$ ruby -e'p proc { |(i)| i }.([1,2,3])'1
$
This bug was found in opal/opal#1703
This also happens in all legacy modes. This works correctly for
((x,y),)
and for((x,y),z)
The text was updated successfully, but these errors were encountered: