Actions
Bug #13678
closedtoplevel return causes [BUG]
    Bug #13678:
    toplevel return causes [BUG]
  
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-06-23 trunk 59146) [x86_64-darwin15]
Description
Attached script causes [BUG] Stack consistency error (sp: 7, bp: 6)
Files
        
          
          Updated by nobu (Nobuyoshi Nakada) over 8 years ago
          
          
        
        
      
      - Status changed from Open to Closed
 
Applied in changeset trunk|r59169.
compile.c: toplevel return in argument
- compile.c (iseq_compile_each0): adjust the stack before return
in an evstr/argument (reported by Balazs balazs@kutilovi.cz)
to fix stack consistency error. [ruby-core:81761] [Bug #13678] 
        
          
          Updated by nobu (Nobuyoshi Nakada) over 8 years ago
          
          
        
        
      
      - Related to Feature #4840: Allow returning from require added
 
        
          
          Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago
          
          
        
        
      
      - Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
 
ruby_2_4 r59490 merged revision(s) 59169.
Actions