Fix the return value of map-into
authorAttila Lendvai <attila.lendvai@gmail.com>
Thu, 6 Jul 2006 22:55:47 +0000 (22:55 +0000)
committerAttila Lendvai <attila.lendvai@gmail.com>
Thu, 6 Jul 2006 22:55:47 +0000 (22:55 +0000)
src/js.lisp

index b4b2b32..75af024 100644 (file)
@@ -1123,7 +1123,7 @@ vice-versa.")
           (do ((,idx 0 (1+ ,idx)))
               ((>= ,idx (slot-value ,arrvar 'length)))
             (setf (aref ,arrvar ,idx) (,fn (aref ,arrvar ,idx)))))
-        (return array)))))
+        (return ,arrvar)))))
 
 (defjsmacro map (function array)
   "Call FUNCTION on each element in ARRAY and return the returned values in a new array."