From: tim.leppard@... Date: 2018-04-24T14:45:14+00:00 Subject: [ruby-core:86666] [Ruby trunk Bug#14708] argument stack underflow (-1) (SyntaxError) Issue #14708 has been reported by tim.leppard (Tim Leppard). ---------------------------------------- Bug #14708: argument stack underflow (-1) (SyntaxError) https://bugs.ruby-lang.org/issues/14708 * Author: tim.leppard (Tim Leppard) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- ~~~ ruby -e '[].each { false || [].each { } }' # OK ruby -e '[].each { nil.nil? || [].each { } }' # OK ruby -e '[].each { true || [].each { } }' -- raw disasm-------- trace: 100 0000 nop ( 1) trace: 1 0001 putobject true ( 1) 0003 leave ( 1) 0004 pop ( 1) *0005 pop ( 1) 0006 newarray 0 ( 1) 0008 send , , nil ( 1) trace: 200 0012 leave ( 1) --------------------- Traceback (most recent call last): -e: -e:1: argument stack underflow (-1) (SyntaxError) ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: