Revision
1246
Author
lsansonetti@apple.com
Date
2009-03-28 20:40:24 -0700 (Sat, 28 Mar 2009)

Log Message

Array#<< is supposed to return self and not the given object

Modified Paths

Diff

Modified: MacRuby/branches/experimental/roxor.cpp (1245 => 1246)


--- MacRuby/branches/experimental/roxor.cpp	2009-03-29 03:36:51 UTC (rev 1245)
+++ MacRuby/branches/experimental/roxor.cpp	2009-03-29 03:40:24 UTC (rev 1246)
@@ -5333,7 +5333,7 @@
 {
     if (overriden == 0 && TYPE(obj) == T_ARRAY) {
 	rb_ary_push(obj, other);
-	return other;
+	return obj;
     }
     return __rb_vm_dispatch(cache, obj, NULL, selLTLT, 0, 1, &other);
 }