Skip to content
  • Guilherme Mansur's avatar
    526a5eb1
    Empty array instead of nil for source_extract · 526a5eb1
    Guilherme Mansur authored
    
    
    The source_extract method will return nil when it can't find the file name in
    the backtrace, methods that consume this method expect an array and the nil ends
    up causing type errors down the road like it happened here: #36341. This
    patch refactors the source_extract method so that it returns an empty
    array instead of nil when it can't find the source code.
    
    Co-authored-by: default avatarKasper Timm Hansen <kaspth@gmail.com>
    526a5eb1
    Empty array instead of nil for source_extract
    Guilherme Mansur authored
    
    
    The source_extract method will return nil when it can't find the file name in
    the backtrace, methods that consume this method expect an array and the nil ends
    up causing type errors down the road like it happened here: #36341. This
    patch refactors the source_extract method so that it returns an empty
    array instead of nil when it can't find the source code.
    
    Co-authored-by: default avatarKasper Timm Hansen <kaspth@gmail.com>
Loading