Permalink
Browse files

Fixed a bug in javascript function p5get_class_for_method

  • Loading branch information...
1 parent 1f09a80 commit 2aefb2428afbe6407bebcda247b5a58954ac5a4a @atoy40 atoy40 committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src5/lib/Perlito5/Javascript2/Runtime.pm
  2. +1 −1 src5/lib/Perlito5/Javascript3/Runtime.pm
@@ -117,7 +117,7 @@ function p5get_class_for_method(method, class_name, seen) {
var isa = p5pkg[class_name].List_ISA;
for (var i = 0; i < isa.length; i++) {
if (!seen[isa[i]]) {
- var m = p5get_class_for_method(method, isa[i]);
+ var m = p5get_class_for_method(method, isa[i], seen);
if (m) {
return m
}
@@ -125,7 +125,7 @@ function p5get_class_for_method(method, class_name, seen) {
var isa = p5pkg[class_name].List_ISA;
for (var i = 0; i < isa.length; i++) {
if (!seen[isa[i]]) {
- var m = p5get_class_for_method(method, isa[i]);
+ var m = p5get_class_for_method(method, isa[i], seen);
if (m) {
return m
}

0 comments on commit 2aefb24

Please sign in to comment.