ext/byebug/byebug.c in byebug-3.3.0 vs ext/byebug/byebug.c in byebug-3.4.0

- old
+ new

@@ -707,10 +707,13 @@ * Returns an array of breakpoints. */ static VALUE bb_breakpoints(VALUE self) { - return NIL_P(breakpoints) ? rb_ary_new() : breakpoints; + if (NIL_P(breakpoints)) + breakpoints = rb_ary_new(); + + return breakpoints; } /* * call-seq: * Byebug.catchpoints -> array