rubyjs 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rubyjs +1 -1
- data/rubyjs.gemspec +1 -1
- data/src/rubyjs/compiler.rb +41 -0
- data/test/browser.test.html +618 -328
- data/test/browser.test.js +2000 -1797
- data/test/test_hot_ruby.rb +146 -0
- data/test/test_insertion_sort.rb +25 -0
- data/test/test_range.rb +17 -0
- metadata +126 -124
data/test/browser.test.js
CHANGED
@@ -47,7 +47,7 @@ function a$b(a)
|
|
47
47
|
// [] -> [[]]
|
48
48
|
// [1,2] -> [1,2]
|
49
49
|
//
|
50
|
-
function a$
|
50
|
+
function a$l(a)
|
51
51
|
{
|
52
52
|
if (a===undefined) return [];
|
53
53
|
if (a.constructor!=Array || a.length<2) return [a];
|
@@ -61,7 +61,7 @@ function a$j(a)
|
|
61
61
|
//
|
62
62
|
// object, method, iterator, arguments
|
63
63
|
//
|
64
|
-
function a$
|
64
|
+
function a$k(o, m, i, a)
|
65
65
|
{
|
66
66
|
var r = o[m]; // method in current class
|
67
67
|
var c = o.a$g.a$e;
|
@@ -70,7 +70,7 @@ function a$l(o, m, i, a)
|
|
70
70
|
return c.a$d.prototype[m].apply(o, [i].concat(a));
|
71
71
|
}
|
72
72
|
|
73
|
-
function a$
|
73
|
+
function a$j(o, m, a)
|
74
74
|
{
|
75
75
|
var r = o[m]; // method in current class
|
76
76
|
var c = o.a$g.a$e;
|
@@ -270,7 +270,7 @@ function a$p(c)
|
|
270
270
|
}
|
271
271
|
}
|
272
272
|
// method map
|
273
|
-
var a$h = {"$
|
273
|
+
var a$h = {"$G":"test","$Q":"sub","$aI":"end","$v":"each","$ak":"sort","$a_":"to_f","$a8":"new_from_jsobject","$at":"m","$x":"loop","$$":"%","$am":"calc","$I":"collect","$aJ":"member?","$aU":"test_three_times_indirect","$ac":"&","$a3":"three_times_yield","$aK":"new_from_key_value_list","$aQ":"test_loop2","$f":"===","$aP":"three_times_block","$8":"==","$bd":"reverse","$a$":"to_i","$aV":"three_times_indirect","$6":"downto","$M":"map","$ab":"times","$t":"p","$aH":"include?","$a5":"keys","$s":"proc","$b":"allocate","$O":"reject","$aY":"three_times_yield2","$S":"size","$ai":"*","$R":"+","$aN":"delete","$bj":"unshift","$a7":"values","$aT":"return_in_block","$5":"upto","$bl":"dup","$T":"rjust","$U":"-","$bc":"not_a_method","$q":"nil?","$a":"new","$bi":"push","$aS":"test_while_loop","$_":"/","$K":"call","$D":"message","$y":"is_a?","$0":"split","$F":"main","$e":"name","$l":"empty?","$ba":"to_splat","$as":"add_msg","$aq":"jage","$j":"raise","$V":"length","$o":"to_s","$be":"clear","$7":">=","$ax":"c_method","$aO":"array","$aa":"|","$h":"kind_of?","$L":"find_all","$ad":"~","$aR":"loop2","$X":"[]","$1":"strip","$aX":"test_three_times_yield2","$a2":"test_return_in_block","$ag":"-@","$al":"[]=","$9":"succ","$bk":"reverse!","$B":"hash","$z":"class","$i":"inspect","$aZ":"test_three_times_block","$ae":"^","$a1":"test_three_times_yield","$bg":"pop","$p":"__send","$g":"eql?","$C":"method","$Z":"<","$ap":"wau","$4":"first","$aG":"begin","$J":"<<","$Y":"ljust","$d":"__invoke","$af":">","$W":"<=","$c":"initialize","$w":"send","$r":"respond_to?","$aw":"a_method","$a0":"test_loop","$k":"shift","$aM":"run","$bb":"blah_blah","$aF":"exclude_end?","$ah":"+@","$P":"select","$ao":"miau","$N":"to_a","$n":"method_missing","$2":"index","$H":"=~","$bf":"each_with_index","$a6":"join","$aW":"test_proc","$A":"tap","$aj":"addPrint","$aD":"last","$m":"instance_of?","$bh":"to_ary","$3":"gsub","$u":"puts"};
|
274
274
|
var a$f = {};
|
275
275
|
for (var i in a$h) a$f[a$h[i]] = i;
|
276
276
|
$b = a$d({a$e: nil,a$f: {$a:
|
@@ -594,52 +594,13 @@ if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,a
|
|
594
594
|
;
|
595
595
|
return self.toString()}
|
596
596
|
|
597
|
-
}});$
|
598
|
-
/* Boolean#== */
|
599
|
-
function(_b,_a){var self;
|
600
|
-
self=this;
|
601
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
602
|
-
;
|
603
|
-
return (self == _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==18))return _c.a$a;
|
604
|
-
throw(_c)}}
|
605
|
-
|
606
|
-
,$o:
|
607
|
-
/* Boolean#to_s */
|
608
|
-
function(){var self;
|
609
|
-
self=this;
|
610
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
611
|
-
;
|
612
|
-
return (self == true ? 'true' : 'false')}
|
613
|
-
|
614
|
-
,$i:
|
615
|
-
/* Boolean#inspect */
|
616
|
-
function(){var self;
|
617
|
-
self=this;
|
618
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
619
|
-
;
|
620
|
-
return (self == true ? 'true' : 'false')}
|
621
|
-
|
622
|
-
}});$m = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::C",a$h: {$n:
|
623
|
-
/* T_TestSend::C#method_missing */
|
624
|
-
function(_d,_a){var self,_b,_c,_e,_f;
|
625
|
-
_f=nil;
|
626
|
-
self=this;
|
627
|
-
_e=_d==null?nil:_d;
|
628
|
-
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
629
|
-
_b=[];
|
630
|
-
for(_c=2;_c<arguments.length;_c++)_b.push(arguments[_c]);
|
631
|
-
;
|
632
|
-
_f=self.$t(nil,("mm: " + (_a).$o() + (", ").$o() + (_b).$o()));
|
633
|
-
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==19))return _g.a$a;
|
634
|
-
throw(_g)}}
|
635
|
-
|
636
|
-
}});$f = a$d({a$j: [],a$e: $k,a$c: "Exception",a$h: {$E:
|
597
|
+
}});$f = a$d({a$j: [],a$e: $k,a$c: "Exception",a$h: {$D:
|
637
598
|
/* Exception#message */
|
638
599
|
function(){var self,_a;
|
639
600
|
_a=nil;
|
640
601
|
self=this;
|
641
|
-
if(self.$
|
642
|
-
_a=self.$
|
602
|
+
if(self.$E==null)self.$E=nil;
|
603
|
+
_a=self.$E;
|
643
604
|
return _a}
|
644
605
|
|
645
606
|
,$o:
|
@@ -647,8 +608,8 @@ return _a}
|
|
647
608
|
function(){var self,_a;
|
648
609
|
_a=nil;
|
649
610
|
self=this;
|
650
|
-
if(self.$
|
651
|
-
_a=self.$
|
611
|
+
if(self.$E==null)self.$E=nil;
|
612
|
+
_a=self.$E;
|
652
613
|
return _a}
|
653
614
|
|
654
615
|
,$c:
|
@@ -659,8 +620,8 @@ self=this;
|
|
659
620
|
try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
660
621
|
if(_a==null)_a=nil;
|
661
622
|
;
|
662
|
-
if((_c=_a.$q(),_c!==false&&_c!==nil)){_b=self.$
|
663
|
-
return _b}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==
|
623
|
+
if((_c=_a.$q(),_c!==false&&_c!==nil)){_b=self.$E=self.$z().$e()}else{_b=self.$E=_a};
|
624
|
+
return _b}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==18))return _e.a$a;
|
664
625
|
throw(_e)}}
|
665
626
|
|
666
627
|
,$i:
|
@@ -668,55 +629,78 @@ throw(_e)}}
|
|
668
629
|
function(){var self,_a;
|
669
630
|
_a=nil;
|
670
631
|
self=this;
|
671
|
-
if(self.$
|
632
|
+
if(self.$E==null)self.$E=nil;
|
672
633
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
673
634
|
;
|
674
|
-
_a=("#<" + (self.$z().$e()).$o() + (": ").$o() + (self.$
|
635
|
+
_a=("#<" + (self.$z().$e()).$o() + (": ").$o() + (self.$E).$o() + (">").$o());
|
675
636
|
return _a}
|
676
637
|
|
677
|
-
}});$
|
678
|
-
/*
|
679
|
-
function(){var self,
|
638
|
+
}});$l = a$d({a$j: [],a$e: $f,a$c: "StandardError"});$m = a$d({a$j: [],a$e: nil,a$c: "T_TestYield"});$n = a$d({a$j: [],a$e: nil,a$c: "T_TestIf"});$o = a$d({a$j: [],a$e: $k,a$f: {$F:
|
639
|
+
/* T_TestException::TestException.main */
|
640
|
+
function(){var self,_b,_c,_d;
|
680
641
|
_d=nil;
|
681
642
|
self=this;
|
682
643
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
683
644
|
;
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
645
|
+
self.$t(nil,"before block");
|
646
|
+
self.$t(nil,"in block");
|
647
|
+
self.$t(nil,"after block");
|
648
|
+
try{self.$t(nil,"block");
|
649
|
+
self.$t(nil,"else")}catch(_a){if(_a instanceof a$c)throw(_a);
|
650
|
+
if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,"rescue")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
651
|
+
self.$t(nil,"another rescue");
|
652
|
+
self.$t(nil,_b)}else{throw(_a)}}};
|
653
|
+
self.$t(nil,$c.$a(nil,"test"));
|
654
|
+
self.$u(nil,"before begin");
|
655
|
+
try{try{self.$u(nil,"before raise");
|
656
|
+
self.$j(nil,$f,"blah");
|
657
|
+
self.$u(nil,"after raise")}catch(_a){if(_a instanceof a$c)throw(_a);
|
658
|
+
if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$u(nil,"noooo")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
659
|
+
self.$t(nil,_b);
|
660
|
+
self.$u(nil,"yes")}else{throw(_a)}}}}finally{self.$u(nil,"ensure")};
|
661
|
+
self.$u(nil,"after begin");
|
662
|
+
self.$u(nil,"--");
|
663
|
+
try{try{self.$u(nil,"abc");
|
664
|
+
self.$j(nil,"r")}catch(_a){if(_a instanceof a$c)throw(_a);
|
665
|
+
if((_c=$l.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,_a);
|
666
|
+
self.$u(nil,"b")}else{throw(_a)}}}finally{self.$u(nil,"e")};
|
667
|
+
try{_d=self.$t(nil,"hallo".$o(nil,2))}catch(_a){if(_a instanceof a$c)throw(_a);
|
668
|
+
if((_c=$a.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
669
|
+
_d=self.$t(nil,_b)}else{throw(_a)}};
|
690
670
|
return _d}
|
691
671
|
|
692
|
-
},a$c: "
|
693
|
-
/*
|
672
|
+
},a$c: "T_TestException::TestException"});$p = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo2"});$q = a$d({a$j: [],a$e: $k,a$f: {$F:
|
673
|
+
/* T_TestRegexp::TestRegexp.main */
|
694
674
|
function(){var self,_a;
|
695
675
|
_a=nil;
|
696
676
|
self=this;
|
697
677
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
698
678
|
;
|
699
|
-
_a=self.$a().$
|
679
|
+
_a=self.$a().$G();
|
700
680
|
return _a}
|
701
681
|
|
702
|
-
},a$c: "
|
703
|
-
/*
|
704
|
-
function(){var self,_a,_b,_c
|
705
|
-
|
682
|
+
},a$c: "T_TestRegexp::TestRegexp",a$h: {$G:
|
683
|
+
/* T_TestRegexp::TestRegexp#test */
|
684
|
+
function(){var self,_a,_b,_c;
|
685
|
+
_c=nil;
|
706
686
|
self=this;
|
707
687
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
708
688
|
;
|
709
|
-
_a=(
|
710
|
-
|
711
|
-
self.$t(nil
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
689
|
+
if((_a="hallo".$H(nil,/ll/),_a!==false&&_a!==nil)){self.$t(nil,"okay")};
|
690
|
+
_b="hallo".$H(nil,/ll/);
|
691
|
+
self.$t(nil,_b);
|
692
|
+
"hallo".$H(nil,/(ll)/);
|
693
|
+
self.$t(nil,(RegExp.$1 || nil));
|
694
|
+
self.$t(nil,(RegExp.$2 || nil));
|
695
|
+
self.$t(nil,(RegExp.$3 || nil));
|
696
|
+
"hallo".$H(nil,/a(ll)(o)/);
|
697
|
+
self.$t(nil,(RegExp.$1 || nil));
|
698
|
+
self.$t(nil,(RegExp.$2 || nil));
|
699
|
+
self.$t(nil,(RegExp.$3 || nil));
|
700
|
+
_c=self.$t(nil,(RegExp.$4 || nil));
|
701
|
+
return _c}
|
718
702
|
|
719
|
-
}});$
|
703
|
+
}});$r = a$d({a$j: [],a$e: nil,a$c: "Enumerable",a$h: {$I:
|
720
704
|
/* Enumerable#collect */
|
721
705
|
function(_a){var self,_b,_c,_f,_h;
|
722
706
|
_h=nil;
|
@@ -728,13 +712,13 @@ _c=[];
|
|
728
712
|
self.$v(function(_d){var _e;
|
729
713
|
var _g=nil;
|
730
714
|
_e=_d==null?nil:_d;
|
731
|
-
_g=_c.$
|
715
|
+
_g=_c.$J(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$K(nil,_e):_e));
|
732
716
|
return _g});
|
733
717
|
_h=_c;
|
734
|
-
return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==
|
718
|
+
return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==19))return _i.a$a;
|
735
719
|
throw(_i)}}
|
736
720
|
|
737
|
-
,$
|
721
|
+
,$L:
|
738
722
|
/* Enumerable#find_all */
|
739
723
|
function(_f){var self,_a,_e,_g;
|
740
724
|
_g=nil;
|
@@ -745,13 +729,13 @@ _a=[];
|
|
745
729
|
self.$v(function(_b){var _c;
|
746
730
|
var _d=nil;
|
747
731
|
_c=_b==null?nil:_b;
|
748
|
-
if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$
|
732
|
+
if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$J(nil,_c)}else{_d=nil};
|
749
733
|
return _d});
|
750
734
|
_g=_a;
|
751
|
-
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==
|
735
|
+
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==20))return _h.a$a;
|
752
736
|
throw(_h)}}
|
753
737
|
|
754
|
-
,$
|
738
|
+
,$M:
|
755
739
|
/* Enumerable#map */
|
756
740
|
function(_a){var self,_b,_c,_f,_h;
|
757
741
|
_h=nil;
|
@@ -763,13 +747,13 @@ _c=[];
|
|
763
747
|
self.$v(function(_d){var _e;
|
764
748
|
var _g=nil;
|
765
749
|
_e=_d==null?nil:_d;
|
766
|
-
_g=_c.$
|
750
|
+
_g=_c.$J(nil,((_f=_b,_f!==false&&_f!==nil)?_b.$K(nil,_e):_e));
|
767
751
|
return _g});
|
768
752
|
_h=_c;
|
769
|
-
return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==
|
753
|
+
return _h}catch(_i){if(_i instanceof a$c && (!_i.a$b || _i.a$b==21))return _i.a$a;
|
770
754
|
throw(_i)}}
|
771
755
|
|
772
|
-
,$
|
756
|
+
,$N:
|
773
757
|
/* Enumerable#to_a */
|
774
758
|
function(){var self,_a,_e;
|
775
759
|
_e=nil;
|
@@ -780,12 +764,12 @@ _a=[];
|
|
780
764
|
self.$v(function(_b){var _c;
|
781
765
|
var _d=nil;
|
782
766
|
_c=_b==null?nil:_b;
|
783
|
-
_d=_a.$
|
767
|
+
_d=_a.$J(nil,_c);
|
784
768
|
return _d});
|
785
769
|
_e=_a;
|
786
770
|
return _e}
|
787
771
|
|
788
|
-
,$
|
772
|
+
,$O:
|
789
773
|
/* Enumerable#reject */
|
790
774
|
function(_f){var self,_a,_e,_g;
|
791
775
|
_g=nil;
|
@@ -796,13 +780,13 @@ _a=[];
|
|
796
780
|
self.$v(function(_b){var _c;
|
797
781
|
var _d=nil;
|
798
782
|
_c=_b==null?nil:_b;
|
799
|
-
if((_e=_f(_c),_e===false||_e===nil)){_d=_a.$
|
783
|
+
if((_e=_f(_c),_e===false||_e===nil)){_d=_a.$J(nil,_c)}else{_d=nil};
|
800
784
|
return _d});
|
801
785
|
_g=_a;
|
802
|
-
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==
|
786
|
+
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==22))return _h.a$a;
|
803
787
|
throw(_h)}}
|
804
788
|
|
805
|
-
,$
|
789
|
+
,$P:
|
806
790
|
/* Enumerable#select */
|
807
791
|
function(_f){var self,_a,_e,_g;
|
808
792
|
_g=nil;
|
@@ -813,399 +797,470 @@ _a=[];
|
|
813
797
|
self.$v(function(_b){var _c;
|
814
798
|
var _d=nil;
|
815
799
|
_c=_b==null?nil:_b;
|
816
|
-
if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$
|
800
|
+
if((_e=_f(_c),_e!==false&&_e!==nil)){_d=_a.$J(nil,_c)}else{_d=nil};
|
817
801
|
return _d});
|
818
802
|
_g=_a;
|
819
|
-
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==
|
803
|
+
return _g}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==23))return _h.a$a;
|
820
804
|
throw(_h)}}
|
821
805
|
|
822
|
-
}});$
|
823
|
-
/*
|
824
|
-
function(){var self
|
806
|
+
}});$e = a$d({a$j: [],a$e: $k,a$c: "String",a$d: String,a$h: {$R:
|
807
|
+
/* String#+ */
|
808
|
+
function(_b,_a){var self;
|
825
809
|
self=this;
|
826
|
-
|
827
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
810
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
828
811
|
;
|
829
|
-
|
830
|
-
_c
|
831
|
-
|
832
|
-
//
|
833
|
-
// we use an associate array to store the items. But unlike
|
834
|
-
// Javascript, the entries are arrays which contain the collisions.
|
835
|
-
// NOTE that we have to prefix the hash code with a prefix so that
|
836
|
-
// there are no collisions with methods etc.
|
837
|
-
// I prefix it for now with ":".
|
838
|
-
//
|
839
|
-
var items = {};
|
840
|
-
var hashed_key, current_key, current_val;
|
841
|
-
|
842
|
-
for (var i = 0; i < _a.length; i += 2)
|
843
|
-
{
|
844
|
-
current_key = _a[i];
|
845
|
-
current_val = _a[i+1];
|
846
|
-
hashed_key = ":" + current_key.$B();
|
847
|
-
|
848
|
-
// make sure that a bucket exists
|
849
|
-
if (!items[hashed_key]) items[hashed_key] = [];
|
850
|
-
|
851
|
-
items[hashed_key].push(current_key, current_val);
|
852
|
-
}
|
853
|
-
|
854
|
-
_c.a$k = items;
|
855
|
-
_c.a$l = nil;
|
856
|
-
return _c;
|
857
|
-
}
|
812
|
+
return(self + _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==25))return _c.a$a;
|
813
|
+
throw(_c)}}
|
858
814
|
|
859
|
-
,$
|
860
|
-
/*
|
861
|
-
function(
|
862
|
-
_c=nil;
|
815
|
+
,$Q:
|
816
|
+
/* String#sub */
|
817
|
+
function(_c,_a,_b){var self;
|
863
818
|
self=this;
|
864
|
-
try{if(arguments.length!=
|
819
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
865
820
|
;
|
866
|
-
|
867
|
-
|
868
|
-
throw(_e)}}
|
821
|
+
self.replace(pattern, replacement)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==24))return _d.a$a;
|
822
|
+
throw(_d)}}
|
869
823
|
|
870
|
-
|
871
|
-
/*
|
824
|
+
,$H:
|
825
|
+
/* String#=~ */
|
872
826
|
function(_b,_a){var self;
|
873
827
|
self=this;
|
874
828
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
875
829
|
;
|
876
830
|
|
877
|
-
|
878
|
-
{
|
879
|
-
|
880
|
-
// we directly look the key up. it's fast but not Ruby-like,
|
881
|
-
// so be careful!
|
882
|
-
|
883
|
-
var elem = self[_a];
|
884
|
-
return (elem == null ? nil : elem);
|
885
|
-
}
|
831
|
+
var i = self.search(_a);
|
832
|
+
return (i == -1 ? nil : i)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==27))return _c.a$a;
|
833
|
+
throw(_c)}}
|
886
834
|
|
887
|
-
|
888
|
-
|
835
|
+
,$T:
|
836
|
+
/* String#rjust */
|
837
|
+
function(_f,_a,_b){var self,_c,_d,_e;
|
838
|
+
self=this;
|
839
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
840
|
+
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
841
|
+
if(_b==null)_b=" ";
|
842
|
+
;
|
843
|
+
if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")};
|
844
|
+
_d=_a.$U(nil,self.$V());
|
845
|
+
if((_c=_d.$W(nil,0),_c!==false&&_c!==nil)){return self};
|
846
|
+
_e="";
|
847
|
+
while(_e.length < _d) _e += _b;;
|
848
|
+
return _e.$X(nil,0,_d).$R(nil,self)}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==26))return _g.a$a;
|
849
|
+
throw(_g)}}
|
889
850
|
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
851
|
+
,$S:
|
852
|
+
/* String#size */
|
853
|
+
function(){var self;
|
854
|
+
self=this;
|
855
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
856
|
+
;
|
857
|
+
return self.length}
|
895
858
|
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
859
|
+
,$X:
|
860
|
+
/* String#[] */
|
861
|
+
function(_d,_a,_b){var self,_c;
|
862
|
+
self=this;
|
863
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
864
|
+
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
865
|
+
if(_b==null)_b=nil;
|
866
|
+
;
|
867
|
+
if((_c=_b.$q(),_c!==false&&_c!==nil)){return self.charAt(_a) || nil}else{if((_c=_b.$Z(nil,0),_c!==false&&_c!==nil)){return nil};
|
868
|
+
return self.substring(_a, _a+_b)}}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==29))return _e.a$a;
|
869
|
+
throw(_e)}}
|
902
870
|
|
903
|
-
|
904
|
-
|
905
|
-
|
871
|
+
,$Y:
|
872
|
+
/* String#ljust */
|
873
|
+
function(_f,_a,_b){var self,_c,_d,_e;
|
874
|
+
self=this;
|
875
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
876
|
+
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
877
|
+
if(_b==null)_b=" ";
|
878
|
+
;
|
879
|
+
if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")};
|
880
|
+
_d=_a.$U(nil,self.$V());
|
881
|
+
if((_c=_d.$W(nil,0),_c!==false&&_c!==nil)){return self};
|
882
|
+
_e="";
|
883
|
+
while(_e.length < _d) _e += _b;;
|
884
|
+
return self.$R(nil,_e.$X(nil,0,_d))}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==28))return _g.a$a;
|
885
|
+
throw(_g)}}
|
886
|
+
|
887
|
+
,$0:
|
888
|
+
/* String#split */
|
889
|
+
function(_b,_a){var self;
|
890
|
+
self=this;
|
891
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
892
|
+
;
|
893
|
+
return self.split(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==30))return _c.a$a;
|
906
894
|
throw(_c)}}
|
907
895
|
|
908
|
-
,$
|
909
|
-
/*
|
910
|
-
function(){var self,
|
911
|
-
|
896
|
+
,$o:
|
897
|
+
/* String#to_s */
|
898
|
+
function(){var self,_a;
|
899
|
+
_a=nil;
|
912
900
|
self=this;
|
913
901
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
914
902
|
;
|
915
|
-
|
916
|
-
|
917
|
-
(_b=a$j(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b);
|
918
|
-
_e=_c;
|
919
|
-
return _e});
|
920
|
-
return _f}
|
903
|
+
_a=self;
|
904
|
+
return _a}
|
921
905
|
|
922
|
-
,$
|
923
|
-
/*
|
924
|
-
function(){var self
|
925
|
-
_c=_g=nil;
|
906
|
+
,$V:
|
907
|
+
/* String#length */
|
908
|
+
function(){var self;
|
926
909
|
self=this;
|
927
910
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
928
911
|
;
|
929
|
-
|
930
|
-
self.$v(function(_b){var _d,_e;
|
931
|
-
var _f=nil;
|
932
|
-
(_c=a$j(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c);
|
933
|
-
_a.$N(nil,_d);
|
934
|
-
_f=_a.$N(nil,_e);
|
935
|
-
return _f});
|
936
|
-
_g=_a.$W(nil,"");
|
937
|
-
return _g}
|
912
|
+
return self.length}
|
938
913
|
|
939
|
-
,$
|
940
|
-
/*
|
941
|
-
function(
|
914
|
+
,$1:
|
915
|
+
/* String#strip */
|
916
|
+
function(){var self;
|
942
917
|
self=this;
|
943
|
-
|
918
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
944
919
|
;
|
920
|
+
return self.replace(/^\s+/, '').replace(/\s+$/, '')}
|
945
921
|
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
// we directly look the key up. it's fast but not Ruby-like,
|
950
|
-
// so be careful!
|
951
|
-
|
952
|
-
self[_a] = _b;
|
953
|
-
return _b;
|
954
|
-
}
|
955
|
-
|
956
|
-
var hashed_key = ":" + _a.$B();
|
957
|
-
var bucket = self.a$k[hashed_key];
|
958
|
-
|
959
|
-
if (bucket)
|
960
|
-
{
|
961
|
-
//
|
962
|
-
// find the matching element inside the bucket
|
963
|
-
//
|
964
|
-
|
965
|
-
for (var i = 0; i < bucket.length; i += 2)
|
966
|
-
{
|
967
|
-
if (bucket[i].$g(nil,_a))
|
968
|
-
{
|
969
|
-
// overwrite value
|
970
|
-
bucket[i+1] = _b;
|
971
|
-
return _b;
|
972
|
-
}
|
973
|
-
}
|
974
|
-
// key not found in this bucket. append key, value pair to bucket
|
975
|
-
bucket.push(_a, _b);
|
976
|
-
}
|
977
|
-
else
|
978
|
-
{
|
979
|
-
//
|
980
|
-
// create new bucket
|
981
|
-
//
|
982
|
-
self.a$k[hashed_key] = [_a, _b];
|
983
|
-
}
|
984
|
-
return _b;
|
985
|
-
}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==28))return _d.a$a;
|
986
|
-
throw(_d)}}
|
987
|
-
|
988
|
-
,$v:
|
989
|
-
/* Hash#each */
|
990
|
-
function(_a){var self;
|
922
|
+
,$l:
|
923
|
+
/* String#empty? */
|
924
|
+
function(){var self;
|
991
925
|
self=this;
|
992
|
-
|
926
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
993
927
|
;
|
928
|
+
return(self === "")}
|
994
929
|
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
var key, bucket, i;
|
1012
|
-
for (key in self.a$k)
|
1013
|
-
{
|
1014
|
-
if (key.charAt(0) == ":")
|
1015
|
-
{
|
1016
|
-
bucket = self.a$k[key];
|
1017
|
-
for (i=0; i<bucket.length; i+=2)
|
1018
|
-
{;
|
1019
|
-
_a([bucket[i],bucket[i+1]]);
|
1020
|
-
|
1021
|
-
}
|
930
|
+
,$3:
|
931
|
+
/* String#gsub */
|
932
|
+
function(_g,_a,_b){var self,_c,_d,_e,_f;
|
933
|
+
self=this;
|
934
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
935
|
+
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
936
|
+
if(_b==null)_b=nil;
|
937
|
+
;
|
938
|
+
(_c=["",self,nil],_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_f=_c[2]==null?nil:_c[2],_c);
|
939
|
+
while(_e.length > 0) {
|
940
|
+
if (_f = _e.match(_a)) {
|
941
|
+
_d += _e.slice(0, _f.index);;
|
942
|
+
if((_c=_b,_c!==false&&_c!==nil)){_d=_d.$R(nil,_b)}else{_d=_d.$R(nil,_g(_f.$4()).$o())};
|
943
|
+
_e = _e.slice(_f.index + _f[0].length);
|
944
|
+
} else {
|
945
|
+
_d += _e; _e = '';
|
1022
946
|
}
|
1023
|
-
}
|
1024
|
-
|
1025
|
-
}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==27))return _b.a$a;
|
1026
|
-
throw(_b)}}
|
947
|
+
} return _d}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==32))return _h.a$a;
|
948
|
+
throw(_h)}}
|
1027
949
|
|
1028
|
-
,$
|
1029
|
-
/*
|
1030
|
-
function(){var self;
|
950
|
+
,$2:
|
951
|
+
/* String#index */
|
952
|
+
function(_c,_a,_b){var self;
|
1031
953
|
self=this;
|
1032
|
-
if(arguments.length
|
954
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
955
|
+
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
956
|
+
if(_b==null)_b=0;
|
1033
957
|
;
|
1034
958
|
|
1035
|
-
self.
|
1036
|
-
|
1037
|
-
|
959
|
+
var i = self.indexOf(_a, _b);
|
960
|
+
return (i == -1) ? nil : i}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==31))return _d.a$a;
|
961
|
+
throw(_d)}}
|
1038
962
|
|
1039
|
-
,$
|
1040
|
-
/*
|
1041
|
-
function(){var self,_b
|
1042
|
-
_b=_f=nil;
|
963
|
+
,$i:
|
964
|
+
/* String#inspect */
|
965
|
+
function(){var self,_a,_b;
|
1043
966
|
self=this;
|
1044
967
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1045
968
|
;
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
969
|
+
_a={
|
970
|
+
'\b': '\\b',
|
971
|
+
'\t': '\\t',
|
972
|
+
'\n': '\\n',
|
973
|
+
'\f': '\\f',
|
974
|
+
'\r': '\\r',
|
975
|
+
'\\': '\\\\'
|
976
|
+
};;
|
977
|
+
_b=self.$3(function(_c){var _d,_e;
|
978
|
+
_d=_c==null?nil:_c;
|
979
|
+
_e=_a[_d];
|
980
|
+
return _e ? _e :
|
981
|
+
'\\u00' + ("0" + _d.charCodeAt().toString(16)).substring(0,2);},/[\x00-\x1f\\]/);
|
982
|
+
return ('"' + _b.replace(/"/g, '\\"') + '"');}
|
1052
983
|
|
1053
|
-
|
1054
|
-
/*
|
1055
|
-
function(){var self
|
1056
|
-
_c=_g=nil;
|
984
|
+
}});$s = a$d({a$j: [],a$e: $k,a$c: "Number",a$d: Number,a$h: {$R:
|
985
|
+
/* Number#+ */
|
986
|
+
function(_b,_a){var self;
|
1057
987
|
self=this;
|
1058
|
-
if(arguments.length
|
988
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1059
989
|
;
|
1060
|
-
_a
|
1061
|
-
|
1062
|
-
var _f=nil;
|
1063
|
-
(_c=a$j(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c);
|
1064
|
-
_f=_d.$i().$L(nil,"=>").$L(nil,_e.$i());
|
1065
|
-
return _f}).$W(nil,", "));
|
1066
|
-
_a=_a.$L(nil,"}");
|
1067
|
-
_g=_a;
|
1068
|
-
return _g}
|
990
|
+
return self + _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==36))return _c.a$a;
|
991
|
+
throw(_c)}}
|
1069
992
|
|
1070
|
-
|
1071
|
-
/*
|
1072
|
-
function(){var self
|
1073
|
-
_b=nil;
|
993
|
+
,$8:
|
994
|
+
/* Number#== */
|
995
|
+
function(_b,_a){var self;
|
1074
996
|
self=this;
|
1075
|
-
if(arguments.length
|
997
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1076
998
|
;
|
1077
|
-
_a
|
1078
|
-
|
1079
|
-
self.$u(nil,"--");
|
1080
|
-
_a.$3(nil,1,2);
|
1081
|
-
self.$u(nil,"--");
|
1082
|
-
_a.$3(nil,1,2,9);
|
1083
|
-
self.$u(nil,"--");
|
1084
|
-
_a.$3(nil,1,2,9,5);
|
1085
|
-
self.$u(nil,"--");
|
1086
|
-
_a.$3(nil,1,2,9,5,6);
|
1087
|
-
self.$u(nil,"--");
|
1088
|
-
_b=_a.$3(nil,1,2,9,5,6,7,8,9,10,11,12);
|
1089
|
-
return _b}
|
999
|
+
return self == _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==35))return _c.a$a;
|
1000
|
+
throw(_c)}}
|
1090
1001
|
|
1091
|
-
|
1092
|
-
/*
|
1093
|
-
function(
|
1094
|
-
_f=nil;
|
1002
|
+
,$6:
|
1003
|
+
/* Number#downto */
|
1004
|
+
function(_d,_a){var self,_b,_c;
|
1095
1005
|
self=this;
|
1096
|
-
try{if(arguments.length
|
1097
|
-
if(_b==null)_b=1;
|
1098
|
-
if(_c==null)_c="hallo";
|
1099
|
-
_d=[];
|
1100
|
-
for(_e=4;_e<arguments.length;_e++)_d.push(arguments[_e]);
|
1006
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1101
1007
|
;
|
1102
|
-
self
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
throw(_h)}}
|
1008
|
+
_b=self;
|
1009
|
+
while((_c=_b.$7(nil,_a),_c!==false&&_c!==nil)){_d(_b);
|
1010
|
+
_b=_b.$U(nil,1)};
|
1011
|
+
return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==34))return _e.a$a;
|
1012
|
+
throw(_e)}}
|
1108
1013
|
|
1109
|
-
|
1110
|
-
/*
|
1111
|
-
function(
|
1112
|
-
_b=nil;
|
1014
|
+
,$5:
|
1015
|
+
/* Number#upto */
|
1016
|
+
function(_d,_a){var self,_b,_c;
|
1113
1017
|
self=this;
|
1114
1018
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1115
1019
|
;
|
1116
|
-
_b=self
|
1117
|
-
|
1118
|
-
|
1020
|
+
_b=self;
|
1021
|
+
while((_c=_b.$W(nil,_a),_c!==false&&_c!==nil)){_d(_b);
|
1022
|
+
_b=_b.$R(nil,1)};
|
1023
|
+
return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==33))return _e.a$a;
|
1024
|
+
throw(_e)}}
|
1119
1025
|
|
1120
|
-
|
1121
|
-
/*
|
1122
|
-
function(){var self
|
1123
|
-
_a=nil;
|
1026
|
+
,$W:
|
1027
|
+
/* Number#<= */
|
1028
|
+
function(_b,_a){var self;
|
1124
1029
|
self=this;
|
1125
|
-
if(arguments.length
|
1030
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1126
1031
|
;
|
1127
|
-
_a
|
1128
|
-
|
1032
|
+
return self <= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==37))return _c.a$a;
|
1033
|
+
throw(_c)}}
|
1129
1034
|
|
1130
|
-
,$
|
1131
|
-
/*
|
1132
|
-
function(
|
1133
|
-
_b=nil;
|
1035
|
+
,$U:
|
1036
|
+
/* Number#- */
|
1037
|
+
function(_b,_a){var self;
|
1134
1038
|
self=this;
|
1135
1039
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1136
1040
|
;
|
1137
|
-
|
1138
|
-
|
1139
|
-
throw(_d)}}
|
1041
|
+
return self - _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==38))return _c.a$a;
|
1042
|
+
throw(_c)}}
|
1140
1043
|
|
1141
|
-
|
1142
|
-
/*
|
1143
|
-
function(){var self
|
1144
|
-
_d=nil;
|
1044
|
+
,$9:
|
1045
|
+
/* Number#succ */
|
1046
|
+
function(){var self;
|
1145
1047
|
self=this;
|
1146
1048
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1147
1049
|
;
|
1148
|
-
self
|
1149
|
-
self.$t(nil,"in block");
|
1150
|
-
self.$t(nil,"after block");
|
1151
|
-
try{self.$t(nil,"block");
|
1152
|
-
self.$t(nil,"else")}catch(_a){if(_a instanceof a$c)throw(_a);
|
1153
|
-
if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,"rescue")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
1154
|
-
self.$t(nil,"another rescue");
|
1155
|
-
self.$t(nil,_b)}else{throw(_a)}}};
|
1156
|
-
self.$t(nil,$c.$a(nil,"test"));
|
1157
|
-
self.$u(nil,"before begin");
|
1158
|
-
try{try{self.$u(nil,"before raise");
|
1159
|
-
self.$j(nil,$f,"blah");
|
1160
|
-
self.$u(nil,"after raise")}catch(_a){if(_a instanceof a$c)throw(_a);
|
1161
|
-
if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$u(nil,"noooo")}else{if((_c=$f.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
1162
|
-
self.$t(nil,_b);
|
1163
|
-
self.$u(nil,"yes")}else{throw(_a)}}}}finally{self.$u(nil,"ensure")};
|
1164
|
-
self.$u(nil,"after begin");
|
1165
|
-
self.$u(nil,"--");
|
1166
|
-
try{try{self.$u(nil,"abc");
|
1167
|
-
self.$j(nil,"r")}catch(_a){if(_a instanceof a$c)throw(_a);
|
1168
|
-
if((_c=$n.$f(nil,_a),_c!==false&&_c!==nil)){self.$t(nil,_a);
|
1169
|
-
self.$u(nil,"b")}else{throw(_a)}}}finally{self.$u(nil,"e")};
|
1170
|
-
try{_d=self.$t(nil,"hallo".$o(nil,2))}catch(_a){if(_a instanceof a$c)throw(_a);
|
1171
|
-
if((_c=$a.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
1172
|
-
_d=self.$t(nil,_b)}else{throw(_a)}};
|
1173
|
-
return _d}
|
1050
|
+
return self+1}
|
1174
1051
|
|
1175
|
-
|
1176
|
-
/*
|
1177
|
-
function(){var self
|
1178
|
-
_a=nil;
|
1052
|
+
,$_:
|
1053
|
+
/* Number#/ */
|
1054
|
+
function(_b,_a){var self;
|
1179
1055
|
self=this;
|
1180
|
-
if(arguments.length
|
1056
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1181
1057
|
;
|
1182
|
-
_a
|
1183
|
-
|
1058
|
+
return self / _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==40))return _c.a$a;
|
1059
|
+
throw(_c)}}
|
1184
1060
|
|
1185
|
-
|
1186
|
-
/*
|
1187
|
-
function(){var self
|
1188
|
-
_f=nil;
|
1061
|
+
,$o:
|
1062
|
+
/* Number#to_s */
|
1063
|
+
function(_b,_a){var self;
|
1189
1064
|
self=this;
|
1190
|
-
if(arguments.length>
|
1191
|
-
;
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
self
|
1200
|
-
|
1201
|
-
|
1202
|
-
self
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1065
|
+
try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1066
|
+
if(_a==null)_a=10;
|
1067
|
+
;
|
1068
|
+
return self.toString(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==39))return _c.a$a;
|
1069
|
+
throw(_c)}}
|
1070
|
+
|
1071
|
+
,$$:
|
1072
|
+
/* Number#% */
|
1073
|
+
function(_b,_a){var self;
|
1074
|
+
self=this;
|
1075
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1076
|
+
;
|
1077
|
+
return self % _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==41))return _c.a$a;
|
1078
|
+
throw(_c)}}
|
1079
|
+
|
1080
|
+
,$ac:
|
1081
|
+
/* Number#& */
|
1082
|
+
function(_b,_a){var self;
|
1083
|
+
self=this;
|
1084
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1085
|
+
;
|
1086
|
+
return self & _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==45))return _c.a$a;
|
1087
|
+
throw(_c)}}
|
1088
|
+
|
1089
|
+
,$Z:
|
1090
|
+
/* Number#< */
|
1091
|
+
function(_b,_a){var self;
|
1092
|
+
self=this;
|
1093
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1094
|
+
;
|
1095
|
+
return self < _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==44))return _c.a$a;
|
1096
|
+
throw(_c)}}
|
1097
|
+
|
1098
|
+
,$ab:
|
1099
|
+
/* Number#times */
|
1100
|
+
function(_c){var self,_a,_b;
|
1101
|
+
self=this;
|
1102
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1103
|
+
;
|
1104
|
+
_a=0;
|
1105
|
+
while((_b=_a.$Z(nil,self),_b!==false&&_b!==nil)){_c(_a);
|
1106
|
+
_a=_a.$R(nil,1)};
|
1107
|
+
return self}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==43))return _d.a$a;
|
1108
|
+
throw(_d)}}
|
1109
|
+
|
1110
|
+
,$aa:
|
1111
|
+
/* Number#| */
|
1112
|
+
function(_b,_a){var self;
|
1113
|
+
self=this;
|
1114
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1115
|
+
;
|
1116
|
+
return self | _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==42))return _c.a$a;
|
1117
|
+
throw(_c)}}
|
1118
|
+
|
1119
|
+
,$ag:
|
1120
|
+
/* Number#-@ */
|
1121
|
+
function(){var self;
|
1122
|
+
self=this;
|
1123
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1124
|
+
;
|
1125
|
+
return -self}
|
1126
|
+
|
1127
|
+
,$af:
|
1128
|
+
/* Number#> */
|
1129
|
+
function(_b,_a){var self;
|
1130
|
+
self=this;
|
1131
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1132
|
+
;
|
1133
|
+
return self > _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==47))return _c.a$a;
|
1134
|
+
throw(_c)}}
|
1135
|
+
|
1136
|
+
,$ae:
|
1137
|
+
/* Number#^ */
|
1138
|
+
function(_b,_a){var self;
|
1139
|
+
self=this;
|
1140
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1141
|
+
;
|
1142
|
+
return self ^ _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==46))return _c.a$a;
|
1143
|
+
throw(_c)}}
|
1144
|
+
|
1145
|
+
,$ad:
|
1146
|
+
/* Number#~ */
|
1147
|
+
function(){var self;
|
1148
|
+
self=this;
|
1149
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1150
|
+
;
|
1151
|
+
return ~self}
|
1152
|
+
|
1153
|
+
,$7:
|
1154
|
+
/* Number#>= */
|
1155
|
+
function(_b,_a){var self;
|
1156
|
+
self=this;
|
1157
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1158
|
+
;
|
1159
|
+
return self >= _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==48))return _c.a$a;
|
1160
|
+
throw(_c)}}
|
1161
|
+
|
1162
|
+
,$i:
|
1163
|
+
/* Number#inspect */
|
1164
|
+
function(){var self;
|
1165
|
+
self=this;
|
1166
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1167
|
+
;
|
1168
|
+
return self.toString()}
|
1169
|
+
|
1170
|
+
,$ai:
|
1171
|
+
/* Number#* */
|
1172
|
+
function(_b,_a){var self;
|
1173
|
+
self=this;
|
1174
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1175
|
+
;
|
1176
|
+
return self * _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==49))return _c.a$a;
|
1177
|
+
throw(_c)}}
|
1178
|
+
|
1179
|
+
,$ah:
|
1180
|
+
/* Number#+@ */
|
1181
|
+
function(){var self;
|
1182
|
+
self=this;
|
1183
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1184
|
+
;
|
1185
|
+
return self}
|
1186
|
+
|
1187
|
+
}});$t = a$d({a$j: [],a$e: $s,a$c: "Float",a$d: Number});$u = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Object"});$y = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1188
|
+
/* T_TestHotRuby::TestHotRuby.main */
|
1189
|
+
function(){var self,_a,_b,_c;
|
1190
|
+
_c=nil;
|
1191
|
+
self=this;
|
1192
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1193
|
+
;
|
1194
|
+
_a=self.$a();
|
1195
|
+
self.$u(nil,"InsertionSort");
|
1196
|
+
_a.$ak(nil,[3,6,2,5,3,7,1,8]);
|
1197
|
+
self.$u(nil,"Array args");
|
1198
|
+
_b=[" World ","!"];
|
1199
|
+
_a.$d(nil,'$aj',["Hello"].concat(a$b(_b)));
|
1200
|
+
self.$u(nil,"Block");
|
1201
|
+
$w.$a().$F();
|
1202
|
+
self.$u(nil,"Class");
|
1203
|
+
self.$u(nil,"PI is about");
|
1204
|
+
self.$u(nil,$x.$a().$am().$o().$X(nil,0,13));
|
1205
|
+
_c=self.$u(nil,"Const");
|
1206
|
+
return _c}
|
1207
1207
|
|
1208
|
-
}
|
1208
|
+
},a$c: "T_TestHotRuby::TestHotRuby",a$h: {$aj:
|
1209
|
+
/* T_TestHotRuby::TestHotRuby#addPrint */
|
1210
|
+
function(_e,_a,_b,_c){var self,_d;
|
1211
|
+
_d=nil;
|
1212
|
+
self=this;
|
1213
|
+
try{if(arguments.length!=4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)'));
|
1214
|
+
;
|
1215
|
+
_d=self.$u(nil,_a.$R(nil,_b).$R(nil,_c));
|
1216
|
+
return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==50))return _f.a$a;
|
1217
|
+
throw(_f)}}
|
1218
|
+
|
1219
|
+
,$ak:
|
1220
|
+
/* T_TestHotRuby::TestHotRuby#sort */
|
1221
|
+
function(_j,_a){var self,_c,_d,_e,_f,_g,_i;
|
1222
|
+
_i=nil;
|
1223
|
+
self=this;
|
1224
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1225
|
+
;
|
1226
|
+
self.$u(nil,"Before insertion sort:");
|
1227
|
+
self.$t(nil,_a);
|
1228
|
+
$v.$a(nil,1,_a.$V().$U(nil,1),false).$v(function(_b){var _h=nil;
|
1229
|
+
_c=_b==null?nil:_b;
|
1230
|
+
_d=_c;
|
1231
|
+
while((_e=(_f=_d.$7(nil,1), (_f!==false&&_f!==nil) ? (_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1)))) : _f),_e!==false&&_e!==nil)){if((_e=_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1))),_e!==false&&_e!==nil)){_g=_a.$X(nil,_d);
|
1232
|
+
_a.$al(nil,_d,_a.$X(nil,_d.$U(nil,1)));
|
1233
|
+
_a.$al(nil,_d.$U(nil,1),_g)};
|
1234
|
+
_d=_d.$U(nil,1)};
|
1235
|
+
_h=nil;
|
1236
|
+
;
|
1237
|
+
return _h});
|
1238
|
+
self.$u(nil,"After insertion sort:");
|
1239
|
+
_i=self.$t(nil,_a);
|
1240
|
+
return _i}catch(_k){if(_k instanceof a$c && (!_k.a$b || _k.a$b==51))return _k.a$a;
|
1241
|
+
throw(_k)}}
|
1242
|
+
|
1243
|
+
}});$x = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Pi",a$h: {$c:
|
1244
|
+
/* T_TestHotRuby::Pi#initialize */
|
1245
|
+
function(){var self,_a;
|
1246
|
+
_a=nil;
|
1247
|
+
self=this;
|
1248
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1249
|
+
;
|
1250
|
+
_a=self.$an=355.0;
|
1251
|
+
return _a}
|
1252
|
+
|
1253
|
+
,$am:
|
1254
|
+
/* T_TestHotRuby::Pi#calc */
|
1255
|
+
function(){var self,_a;
|
1256
|
+
self=this;
|
1257
|
+
if(self.$an==null)self.$an=nil;
|
1258
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1259
|
+
;
|
1260
|
+
_a=113.0;
|
1261
|
+
return self.$an.$_(nil,_a)}
|
1262
|
+
|
1263
|
+
}});$S = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1209
1264
|
/* TestSuite.main */
|
1210
1265
|
function(){var self,_c,_d,_b;
|
1211
1266
|
_b=nil;
|
@@ -1215,1519 +1270,1539 @@ if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,a
|
|
1215
1270
|
try{self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1216
1271
|
self.$u(nil,"Test hash");
|
1217
1272
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1218
|
-
$
|
1273
|
+
$z.$F();
|
1219
1274
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1220
1275
|
self.$u(nil,"Test yield");
|
1221
1276
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1222
|
-
$
|
1277
|
+
$A.$F();
|
1278
|
+
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1279
|
+
self.$u(nil,"Test insertion sort");
|
1280
|
+
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1281
|
+
$B.$F();
|
1223
1282
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1224
1283
|
self.$u(nil,"Test lebewesen");
|
1225
1284
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1226
|
-
$
|
1285
|
+
$C.$F();
|
1227
1286
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1228
1287
|
self.$u(nil,"Test expr");
|
1229
1288
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1230
|
-
$
|
1289
|
+
$D.$F();
|
1231
1290
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1232
1291
|
self.$u(nil,"Test simple output");
|
1233
1292
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1234
|
-
$
|
1293
|
+
$E.$F();
|
1235
1294
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1236
1295
|
self.$u(nil,"Test if");
|
1237
1296
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1238
|
-
$F.$
|
1297
|
+
$F.$F();
|
1239
1298
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1240
1299
|
self.$u(nil,"Test class");
|
1241
1300
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1242
|
-
$
|
1301
|
+
$G.$F();
|
1243
1302
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1244
1303
|
self.$u(nil,"Test case");
|
1245
1304
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1246
|
-
$
|
1305
|
+
$H.$F();
|
1247
1306
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1248
1307
|
self.$u(nil,"Test splat");
|
1249
1308
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1250
|
-
$
|
1309
|
+
$I.$F();
|
1251
1310
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1252
1311
|
self.$u(nil,"Test string");
|
1253
1312
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1254
|
-
$
|
1313
|
+
$J.$F();
|
1255
1314
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1256
1315
|
self.$u(nil,"Test inspect");
|
1257
1316
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1258
|
-
$
|
1317
|
+
$K.$F();
|
1259
1318
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1260
1319
|
self.$u(nil,"Test regexp");
|
1261
1320
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1262
|
-
$
|
1321
|
+
$q.$F();
|
1263
1322
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1264
1323
|
self.$u(nil,"Test args");
|
1265
1324
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1266
|
-
$
|
1325
|
+
$L.$F();
|
1267
1326
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1268
1327
|
self.$u(nil,"Test array");
|
1269
1328
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1270
|
-
$
|
1329
|
+
$M.$F();
|
1271
1330
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1272
1331
|
self.$u(nil,"Test eql");
|
1273
1332
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1274
|
-
$
|
1333
|
+
$N.$F();
|
1275
1334
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1276
1335
|
self.$u(nil,"Test send");
|
1277
1336
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1278
|
-
$
|
1337
|
+
$O.$F();
|
1279
1338
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1280
1339
|
self.$u(nil,"Test range");
|
1281
1340
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1282
|
-
$
|
1341
|
+
$P.$F();
|
1283
1342
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1284
1343
|
self.$u(nil,"Test massign");
|
1285
1344
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1286
|
-
$
|
1345
|
+
$Q.$F();
|
1346
|
+
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1347
|
+
self.$u(nil,"Test hot ruby");
|
1348
|
+
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1349
|
+
$y.$F();
|
1287
1350
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1288
1351
|
self.$u(nil,"Test new");
|
1289
1352
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1290
|
-
$
|
1353
|
+
$R.$F();
|
1291
1354
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1292
1355
|
self.$u(nil,"Test exception");
|
1293
1356
|
self.$u(nil,"~~~~~~~~~~~~~~~~~~~~");
|
1294
|
-
_b=$
|
1357
|
+
_b=$o.$F()}catch(_a){if(_a instanceof a$c)throw(_a);
|
1295
1358
|
if((_d=$f.$f(nil,_a),_d!==false&&_d!==nil)){_c=_a;
|
1296
1359
|
self.$t(nil,"unhandled exception");
|
1297
1360
|
_b=self.$t(nil,_c)}else{throw(_a)}};
|
1298
1361
|
return _b}
|
1299
1362
|
|
1300
|
-
},a$c: "TestSuite"});$
|
1301
|
-
/*
|
1302
|
-
function(
|
1303
|
-
|
1363
|
+
},a$c: "TestSuite"});$T = a$d({a$j: [],a$e: nil,a$c: "T_TestArgs"});$C = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1364
|
+
/* T_TestLebewesen::TestLebewesen.main */
|
1365
|
+
function(){var self,_a,_b,_c,_d;
|
1366
|
+
_d=nil;
|
1304
1367
|
self=this;
|
1305
|
-
|
1368
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1306
1369
|
;
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1370
|
+
_a=$U.$a(nil,"AA-BB","Leni");
|
1371
|
+
_b=$U.$a(nil,"AC-DC","Flocki");
|
1372
|
+
_c=$V.$a(nil,"AA-ZZ");
|
1373
|
+
_a.$ao();
|
1374
|
+
_c.$ap();
|
1375
|
+
_d=_c.$aq(nil,_a);
|
1376
|
+
return _d}
|
1310
1377
|
|
1311
|
-
}});$
|
1312
|
-
/* T_TestSend::
|
1313
|
-
function(_d,_a
|
1378
|
+
},a$c: "T_TestLebewesen::TestLebewesen"});$W = a$d({a$j: [],a$e: nil,a$c: "T_TestNew"});$X = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::C",a$h: {$n:
|
1379
|
+
/* T_TestSend::C#method_missing */
|
1380
|
+
function(_d,_a){var self,_b,_c,_e,_f;
|
1381
|
+
_f=nil;
|
1314
1382
|
self=this;
|
1315
|
-
|
1316
|
-
try{if(arguments.length
|
1383
|
+
_e=_d==null?nil:_d;
|
1384
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1385
|
+
_b=[];
|
1386
|
+
for(_c=2;_c<arguments.length;_c++)_b.push(arguments[_c]);
|
1317
1387
|
;
|
1318
|
-
self.$t(nil,"
|
1319
|
-
|
1320
|
-
throw(
|
1388
|
+
_f=self.$t(nil,("mm: " + (_a).$o() + (", ").$o() + (_b).$o()));
|
1389
|
+
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==52))return _g.a$a;
|
1390
|
+
throw(_g)}}
|
1321
1391
|
|
1322
|
-
|
1323
|
-
/*
|
1324
|
-
function(
|
1325
|
-
_b=nil;
|
1392
|
+
}});$h = a$d({a$j: [],a$e: $k,a$f: {$a:
|
1393
|
+
/* Proc.new */
|
1394
|
+
function(_a){var self,_b,_c;
|
1326
1395
|
self=this;
|
1327
|
-
|
1396
|
+
_b=_a==null?nil:_a;
|
1397
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1328
1398
|
;
|
1329
|
-
_b
|
1330
|
-
return
|
1399
|
+
if((_c=_b,_c===false||_c===nil)){self.$j(nil,$a,"tried to create Proc object without a block")};
|
1400
|
+
return (function() {
|
1401
|
+
try {
|
1402
|
+
return _b.$K.apply(_b, arguments);
|
1403
|
+
} catch(e)
|
1404
|
+
{
|
1405
|
+
if (e instanceof a$c)
|
1406
|
+
{
|
1407
|
+
if (e.a$b == null)
|
1408
|
+
{;
|
1409
|
+
self.$j(nil,$Y,"break from proc-closure");
|
1410
|
+
}
|
1411
|
+
return e.a$a;
|
1412
|
+
}
|
1413
|
+
else throw(e);
|
1414
|
+
}
|
1415
|
+
})}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==53))return _d.a$a;
|
1331
1416
|
throw(_d)}}
|
1332
1417
|
|
1333
|
-
}
|
1334
|
-
/*
|
1418
|
+
},a$c: "Proc",a$d: Function,a$h: {$K:
|
1419
|
+
/* Proc#call */
|
1420
|
+
function(){var self,_a,_b;
|
1421
|
+
self=this;
|
1422
|
+
_a=[];
|
1423
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
1424
|
+
;
|
1425
|
+
|
1426
|
+
// TODO: use switch/case
|
1427
|
+
if (_a.length == 0) return self();
|
1428
|
+
else if (_a.length == 1) return self(_a[0]);
|
1429
|
+
else return self(_a);}
|
1430
|
+
|
1431
|
+
}});$Y = a$d({a$j: [],a$e: $l,a$c: "LocalJumpError"});$Z = a$d({a$j: [],a$e: $s,a$c: "Bignum",a$d: Number});$0 = a$d({a$j: [],a$e: nil,a$c: "T_TestExpr"});$H = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1432
|
+
/* T_TestCase::TestCase.main */
|
1335
1433
|
function(){var self,_a;
|
1336
1434
|
_a=nil;
|
1337
1435
|
self=this;
|
1338
1436
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1339
1437
|
;
|
1340
|
-
_a=
|
1438
|
+
_a=self.$a().$G();
|
1341
1439
|
return _a}
|
1342
1440
|
|
1343
|
-
|
1344
|
-
/*
|
1345
|
-
function(){var self,_a;
|
1346
|
-
|
1441
|
+
},a$c: "T_TestCase::TestCase",a$h: {$G:
|
1442
|
+
/* T_TestCase::TestCase#test */
|
1443
|
+
function(){var self,_a,_b,_c,_d;
|
1444
|
+
_d=nil;
|
1347
1445
|
self=this;
|
1348
1446
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1349
1447
|
;
|
1350
|
-
_a=
|
1351
|
-
|
1448
|
+
_a=(1).$R(nil,1);
|
1449
|
+
if((_b=(_c=(1).$f(nil,_a), (_c!==false&&_c!==nil) ? _c : ((3).$f(nil,_a))),_b!==false&&_b!==nil)){self.$u(nil,"NOT OKAY")}else{if((_b=(2).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OKAY")}else{self.$u(nil,"NOT OKAY")}};
|
1450
|
+
self.$t(nil,$1.$f(nil,[]));
|
1451
|
+
self.$t(nil,$c.$f(nil,$c.$a()));
|
1452
|
+
_a=1;
|
1453
|
+
if((_b=$2.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}else{if((_b=(1).$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"OK")}};
|
1454
|
+
_a=_d=4;
|
1455
|
+
if((_b=$v.$a(nil,0,3,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,1,4,true).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"NOT OKAY")}else{if((_b=$v.$a(nil,2,4,false).$f(nil,_a),_b!==false&&_b!==nil)){_d=self.$u(nil,"OKAY")}else{_d=nil}}};
|
1456
|
+
return _d}
|
1352
1457
|
|
1353
|
-
|
1354
|
-
/*
|
1355
|
-
function(){var self,_a;
|
1356
|
-
|
1458
|
+
}});$w = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo",a$h: {$F:
|
1459
|
+
/* T_TestHotRuby::Foo#main */
|
1460
|
+
function(){var self,_a,_f;
|
1461
|
+
_f=nil;
|
1357
1462
|
self=this;
|
1463
|
+
if(self.$ar==null)self.$ar=nil;
|
1358
1464
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1359
1465
|
;
|
1360
|
-
_a="";
|
1361
|
-
|
1466
|
+
_a="Action";
|
1467
|
+
self.$ar=" ";
|
1468
|
+
_f=$3.$a().$as(function(_b){var _c,_d;
|
1469
|
+
var _e=nil;
|
1470
|
+
_c=_b==null?nil:_b;
|
1471
|
+
_d="eloquence";
|
1472
|
+
_e=self.$u(nil,_a.$R(nil,self.$ar).$R(nil,_c).$R(nil,self.$ar).$R(nil,_d).$R(nil," - William Shakespeare"));
|
1473
|
+
return _e});
|
1474
|
+
return _f}
|
1362
1475
|
|
1363
|
-
|
1364
|
-
/*
|
1476
|
+
}});$F = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1477
|
+
/* T_TestIf::TestIf.main */
|
1365
1478
|
function(){var self,_a;
|
1366
1479
|
_a=nil;
|
1367
1480
|
self=this;
|
1368
1481
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1369
1482
|
;
|
1370
|
-
_a=
|
1483
|
+
_a=self.$a().$G();
|
1371
1484
|
return _a}
|
1372
1485
|
|
1373
|
-
|
1374
|
-
/*
|
1375
|
-
function(){var self,_a;
|
1376
|
-
|
1486
|
+
},a$c: "T_TestIf::TestIf",a$h: {$G:
|
1487
|
+
/* T_TestIf::TestIf#test */
|
1488
|
+
function(){var self,_a,_b,_c,_d,_e,_f;
|
1489
|
+
_f=nil;
|
1377
1490
|
self=this;
|
1378
1491
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1379
1492
|
;
|
1380
|
-
|
1381
|
-
|
1493
|
+
if(true){self.$u(nil,"OK")};
|
1494
|
+
if(false){self.$u(nil,"NOT OK")};
|
1495
|
+
if(true){self.$u(nil,"OK")};
|
1496
|
+
if(false){self.$u(nil,"NOT OK")};
|
1497
|
+
if((_a=(_b=true, (_b!==false&&_b!==nil) ? ((_c=true, (_c!==false&&_c!==nil) ? ((_d=(_e=true, (_e!==false&&_e!==nil) ? _e : (false)), (_d!==false&&_d!==nil) ? (true) : _d)) : _c)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")};
|
1498
|
+
if((_a=(_b=(5).$Z(nil,6), (_b!==false&&_b!==nil) ? ((6).$Z(nil,7)) : _b),_a!==false&&_a!==nil)){self.$u(nil,"OK")};
|
1499
|
+
self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? _a : ("a")));
|
1500
|
+
self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? _a : ("a")));
|
1501
|
+
self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? _a : ("a")));
|
1502
|
+
self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? _a : ("a")));
|
1503
|
+
self.$t(nil,(_a=false, (_a!==false&&_a!==nil) ? ("a") : _a));
|
1504
|
+
self.$t(nil,(_a=nil, (_a!==false&&_a!==nil) ? ("a") : _a));
|
1505
|
+
self.$t(nil,(_a=true, (_a!==false&&_a!==nil) ? ("a") : _a));
|
1506
|
+
_f=self.$t(nil,(_a="b", (_a!==false&&_a!==nil) ? ("a") : _a));
|
1507
|
+
return _f}
|
1382
1508
|
|
1383
|
-
|
1384
|
-
/*
|
1385
|
-
function(){var self,_a;
|
1386
|
-
|
1509
|
+
}});$L = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1510
|
+
/* T_TestArgs::TestArgs.main */
|
1511
|
+
function(){var self,_a,_b;
|
1512
|
+
_b=nil;
|
1387
1513
|
self=this;
|
1388
1514
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1389
1515
|
;
|
1390
|
-
_a=
|
1391
|
-
|
1516
|
+
_a=self.$a();
|
1517
|
+
_a.$at(nil,0);
|
1518
|
+
self.$u(nil,"--");
|
1519
|
+
_a.$at(nil,1,2);
|
1520
|
+
self.$u(nil,"--");
|
1521
|
+
_a.$at(nil,1,2,9);
|
1522
|
+
self.$u(nil,"--");
|
1523
|
+
_a.$at(nil,1,2,9,5);
|
1524
|
+
self.$u(nil,"--");
|
1525
|
+
_a.$at(nil,1,2,9,5,6);
|
1526
|
+
self.$u(nil,"--");
|
1527
|
+
_b=_a.$at(nil,1,2,9,5,6,7,8,9,10,11,12);
|
1528
|
+
return _b}
|
1392
1529
|
|
1393
|
-
|
1394
|
-
/*
|
1530
|
+
},a$c: "T_TestArgs::TestArgs",a$h: {$at:
|
1531
|
+
/* T_TestArgs::TestArgs#m */
|
1532
|
+
function(_g,_a,_b,_c){var self,_d,_e,_f;
|
1533
|
+
_f=nil;
|
1534
|
+
self=this;
|
1535
|
+
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1536
|
+
if(_b==null)_b=1;
|
1537
|
+
if(_c==null)_c="hallo";
|
1538
|
+
_d=[];
|
1539
|
+
for(_e=4;_e<arguments.length;_e++)_d.push(arguments[_e]);
|
1540
|
+
;
|
1541
|
+
self.$t(nil,_a);
|
1542
|
+
self.$t(nil,_b);
|
1543
|
+
self.$t(nil,_c);
|
1544
|
+
_f=self.$t(nil,_d);
|
1545
|
+
return _f}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==54))return _h.a$a;
|
1546
|
+
throw(_h)}}
|
1547
|
+
|
1548
|
+
}});$4 = a$d({a$j: [],a$e: $k,a$c: "T_TestLebewesen::Lebewesen",a$h: {$c:
|
1549
|
+
/* T_TestLebewesen::Lebewesen#initialize */
|
1550
|
+
function(_c,_a){var self,_b;
|
1551
|
+
_b=nil;
|
1552
|
+
self=this;
|
1553
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1554
|
+
;
|
1555
|
+
_b=self.$au=_a;
|
1556
|
+
return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==55))return _d.a$a;
|
1557
|
+
throw(_d)}}
|
1558
|
+
|
1559
|
+
}});$V = a$d({a$j: [],a$e: $4,a$c: "T_TestLebewesen::Hund",a$h: {$ap:
|
1560
|
+
/* T_TestLebewesen::Hund#wau */
|
1395
1561
|
function(){var self,_a;
|
1396
1562
|
_a=nil;
|
1397
1563
|
self=this;
|
1398
1564
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1399
1565
|
;
|
1400
|
-
_a=
|
1566
|
+
_a=self.$u(nil,"wau wau");
|
1401
1567
|
return _a}
|
1402
1568
|
|
1403
|
-
|
1404
|
-
/*
|
1405
|
-
function(){var self,
|
1569
|
+
,$aq:
|
1570
|
+
/* T_TestLebewesen::Hund#jage */
|
1571
|
+
function(_c,_a){var self,_b;
|
1406
1572
|
_b=nil;
|
1407
1573
|
self=this;
|
1408
|
-
if(arguments.length
|
1574
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1409
1575
|
;
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
_a.$3(nil,1);
|
1414
|
-
_a.$d(nil,'$3',a$b([1]));
|
1415
|
-
_a.$d(nil,'$3',[1].concat(a$b([])));
|
1416
|
-
_a.$3(nil,1,2);
|
1417
|
-
_a.$d(nil,'$3',a$b([1,2]));
|
1418
|
-
_a.$d(nil,'$3',[1].concat(a$b([2])));
|
1419
|
-
_b=_a.$d(nil,'$3',[1].concat(a$b([1,2])));
|
1420
|
-
return _b}
|
1576
|
+
_b=self.$u(nil,"ich jage ".$R(nil,_a.$e()));
|
1577
|
+
return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==56))return _d.a$a;
|
1578
|
+
throw(_d)}}
|
1421
1579
|
|
1422
|
-
},a$c: "T_TestSplat
|
1423
|
-
/*
|
1424
|
-
function(){var self,
|
1580
|
+
}});$5 = a$d({a$j: [],a$e: nil,a$c: "T_TestSplat"});$d = a$d({a$j: [],a$e: $l,a$c: "TypeError"});$6 = a$d({a$j: [],a$e: $k,a$c: "MatchData",a$h: {$c:
|
1581
|
+
/* MatchData#initialize */
|
1582
|
+
function(_c,_a){var self,_b;
|
1583
|
+
_b=nil;
|
1584
|
+
self=this;
|
1585
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1586
|
+
;
|
1587
|
+
_b=self.$av=_a;
|
1588
|
+
return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==57))return _d.a$a;
|
1589
|
+
throw(_d)}}
|
1590
|
+
|
1591
|
+
}});$7 = a$d({a$j: [],a$e: $k,a$c: "T_TestSend::A",a$h: {$aw:
|
1592
|
+
/* T_TestSend::A#a_method */
|
1593
|
+
function(_d,_a,_b){var self,_c;
|
1425
1594
|
_c=nil;
|
1426
1595
|
self=this;
|
1427
|
-
|
1428
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
1596
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
1429
1597
|
;
|
1430
|
-
_c=self.$t(nil,_a);
|
1431
|
-
return _c}
|
1598
|
+
_c=self.$t(nil,_a,_b);
|
1599
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==58))return _e.a$a;
|
1600
|
+
throw(_e)}}
|
1432
1601
|
|
1433
|
-
}});$
|
1434
|
-
/*
|
1435
|
-
function(){var self
|
1436
|
-
_a=nil;
|
1602
|
+
}});$8 = a$d({a$j: [],a$e: $7,a$c: "T_TestSend::B",a$h: {$aw:
|
1603
|
+
/* T_TestSend::B#a_method */
|
1604
|
+
function(_d,_a,_b){var self;
|
1437
1605
|
self=this;
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1606
|
+
var _c=arguments;
|
1607
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
1608
|
+
;
|
1609
|
+
self.$t(nil,"in B");
|
1610
|
+
a$j(self,'$aw',_c)}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==59))return _e.a$a;
|
1611
|
+
throw(_e)}}
|
1441
1612
|
|
1442
|
-
,$
|
1443
|
-
/*
|
1444
|
-
function(
|
1445
|
-
|
1613
|
+
,$ax:
|
1614
|
+
/* T_TestSend::B#c_method */
|
1615
|
+
function(_c,_a){var self,_b;
|
1616
|
+
_b=nil;
|
1617
|
+
self=this;
|
1618
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1619
|
+
;
|
1620
|
+
_b=nil;
|
1621
|
+
return _b}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==60))return _d.a$a;
|
1622
|
+
throw(_d)}}
|
1623
|
+
|
1624
|
+
}});$9 = a$d({a$j: [],a$e: nil,a$c: "T_TestClass"});$_ = a$d({a$j: [],a$e: nil,a$c: "T_TestClass::X"});$$ = a$d({a$j: [$_],a$e: $k,a$c: "T_TestClass::A"});$aa = a$d({a$j: [],a$e: $$,a$c: "T_TestClass::B"});$ab = a$d({a$j: [],a$e: nil,a$c: "T_TestArray"});$j = a$d({a$j: [],a$e: $k,a$c: "Method",a$h: {$c:
|
1625
|
+
/* Method#initialize */
|
1626
|
+
function(_f,_a,_b){var self,_c,_d,_e;
|
1627
|
+
_e=nil;
|
1446
1628
|
self=this;
|
1447
1629
|
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
1448
1630
|
;
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1631
|
+
(_c=[_a,_b],self.$ay=_c[0]==null?nil:_c[0],self.$az=_c[1]==null?nil:_c[1],_c);
|
1632
|
+
_d=nil;
|
1633
|
+
_d = _a[a$f[_b]];
|
1634
|
+
if (_d==null) _d = nil;;
|
1635
|
+
if((_c=_d,_c!==false&&_c!==nil)){_e=self.$aA=_d}else{_e=self.$j(nil,$ac,("undefined method `" + (_b).$o() + ("' for class `").$o() + (_a.$z().$e()).$o() + ("'").$o()))};
|
1636
|
+
return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==61))return _g.a$a;
|
1637
|
+
throw(_g)}}
|
1638
|
+
|
1639
|
+
,$K:
|
1640
|
+
/* Method#call */
|
1641
|
+
function(_c){var self,_a,_b,_d;
|
1642
|
+
self=this;
|
1643
|
+
_d=_c==null?nil:_c;
|
1644
|
+
try{_a=[];
|
1645
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
1646
|
+
;
|
1647
|
+
return self.$aA.apply(self.$ay, [_d].concat(_a))}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==62))return _e.a$a;
|
1452
1648
|
throw(_e)}}
|
1453
1649
|
|
1454
|
-
,$
|
1455
|
-
/*
|
1650
|
+
,$i:
|
1651
|
+
/* Method#inspect */
|
1456
1652
|
function(){var self,_a;
|
1457
1653
|
_a=nil;
|
1458
1654
|
self=this;
|
1459
|
-
if(self
|
1655
|
+
if(self.$ay==null)self.$ay=nil;
|
1656
|
+
if(self.$az==null)self.$az=nil;
|
1460
1657
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1461
1658
|
;
|
1462
|
-
_a=self.$
|
1659
|
+
_a=("#<Method: " + (self.$ay.$z().$e()).$o() + ("#").$o() + (self.$az).$o() + (">").$o());
|
1463
1660
|
return _a}
|
1464
1661
|
|
1465
|
-
}});$
|
1466
|
-
/*
|
1662
|
+
}});$v = a$d({a$j: [],a$e: $k,a$c: "Range",a$h: {$8:
|
1663
|
+
/* Range#== */
|
1664
|
+
function(_e,_a){var self,_b,_c,_d;
|
1665
|
+
_d=nil;
|
1666
|
+
self=this;
|
1667
|
+
if(self.$aB==null)self.$aB=nil;
|
1668
|
+
if(self.$aC==null)self.$aC=nil;
|
1669
|
+
if(self.$aE==null)self.$aE=nil;
|
1670
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1671
|
+
;
|
1672
|
+
if (self.constructor != _a.constructor) return false;;
|
1673
|
+
_d=(_b=self.$aB.$8(nil,_a.$4()), (_b!==false&&_b!==nil) ? ((_c=self.$aC.$8(nil,_a.$aD()), (_c!==false&&_c!==nil) ? (self.$aE.$8(nil,_a.$aF())) : _c)) : _b);
|
1674
|
+
return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==63))return _f.a$a;
|
1675
|
+
throw(_f)}}
|
1676
|
+
|
1677
|
+
,$aG:
|
1678
|
+
/* Range#begin */
|
1467
1679
|
function(){var self,_a;
|
1468
1680
|
_a=nil;
|
1469
1681
|
self=this;
|
1682
|
+
if(self.$aB==null)self.$aB=nil;
|
1470
1683
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1471
1684
|
;
|
1472
|
-
self.$
|
1473
|
-
self.$t(nil,$I.$a().$m(nil,$J));
|
1474
|
-
self.$t(nil,$J.$a().$m(nil,$I));
|
1475
|
-
self.$t(nil,$I.$a().$m(nil,$H));
|
1476
|
-
self.$t(nil,$J.$a().$m(nil,$H));
|
1477
|
-
self.$t(nil,$I.$a().$h(nil,$I));
|
1478
|
-
self.$t(nil,$I.$a().$h(nil,$J));
|
1479
|
-
self.$t(nil,$J.$a().$h(nil,$I));
|
1480
|
-
self.$t(nil,$I.$a().$h(nil,$H));
|
1481
|
-
self.$t(nil,$J.$a().$h(nil,$H));
|
1482
|
-
self.$t(nil,$5.$a().$h(nil,$H));
|
1483
|
-
self.$t(nil,$5.$a().$h(nil,$I));
|
1484
|
-
self.$t(nil,$5.$a().$h(nil,$J));
|
1485
|
-
self.$t(nil,$5.$a().$h(nil,$5));
|
1486
|
-
self.$t(nil,$5.$a().$h(nil,$6));
|
1487
|
-
self.$t(nil,$5.$a().$h(nil,$k));
|
1488
|
-
self.$t(nil,$5.$a().$h(nil,$i));
|
1489
|
-
self.$t(nil,$5.$a().$h(nil,$b));
|
1490
|
-
self.$t(nil,"hallo".$z().$e());
|
1491
|
-
self.$t(nil,nil.$z().$e());
|
1492
|
-
self.$t(nil,nil.$m(nil,$3));
|
1493
|
-
self.$t(nil,"hallo".$m(nil,$e));
|
1494
|
-
self.$t(nil,"hallo".$z());
|
1495
|
-
self.$t(nil,$I);
|
1496
|
-
self.$t(nil,$J);
|
1497
|
-
self.$t(nil,$5);
|
1498
|
-
self.$t(nil,$6);
|
1499
|
-
self.$t(nil,$H);
|
1500
|
-
self.$t(nil,$H.$e());
|
1501
|
-
self.$t(nil,$I.$e());
|
1502
|
-
_a=self.$t(nil,$J.$e());
|
1685
|
+
_a=self.$aB;
|
1503
1686
|
return _a}
|
1504
1687
|
|
1505
|
-
|
1506
|
-
/*
|
1688
|
+
,$g:
|
1689
|
+
/* Range#eql? */
|
1690
|
+
function(_e,_a){var self,_b,_c,_d;
|
1691
|
+
_d=nil;
|
1692
|
+
self=this;
|
1693
|
+
if(self.$aB==null)self.$aB=nil;
|
1694
|
+
if(self.$aC==null)self.$aC=nil;
|
1695
|
+
if(self.$aE==null)self.$aE=nil;
|
1696
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1697
|
+
;
|
1698
|
+
if (self.constructor != _a.constructor) return false;;
|
1699
|
+
_d=(_b=self.$aB.$g(nil,_a.$4()), (_b!==false&&_b!==nil) ? ((_c=self.$aC.$g(nil,_a.$aD()), (_c!==false&&_c!==nil) ? (self.$aE.$8(nil,_a.$aF())) : _c)) : _b);
|
1700
|
+
return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==64))return _f.a$a;
|
1701
|
+
throw(_f)}}
|
1702
|
+
|
1703
|
+
,$aF:
|
1704
|
+
/* Range#exclude_end? */
|
1507
1705
|
function(){var self,_a;
|
1508
1706
|
_a=nil;
|
1509
1707
|
self=this;
|
1708
|
+
if(self.$aE==null)self.$aE=nil;
|
1510
1709
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1511
1710
|
;
|
1512
|
-
_a=self.$
|
1711
|
+
_a=self.$aE;
|
1513
1712
|
return _a}
|
1514
1713
|
|
1515
|
-
|
1516
|
-
/*
|
1714
|
+
,$aD:
|
1715
|
+
/* Range#last */
|
1517
1716
|
function(){var self,_a;
|
1518
1717
|
_a=nil;
|
1519
1718
|
self=this;
|
1719
|
+
if(self.$aC==null)self.$aC=nil;
|
1520
1720
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1521
1721
|
;
|
1522
|
-
_a=
|
1722
|
+
_a=self.$aC;
|
1523
1723
|
return _a}
|
1524
1724
|
|
1525
|
-
,$
|
1526
|
-
/*
|
1527
|
-
function(){var self,_a
|
1528
|
-
|
1725
|
+
,$o:
|
1726
|
+
/* Range#to_s */
|
1727
|
+
function(){var self,_b,_a;
|
1728
|
+
_a=nil;
|
1529
1729
|
self=this;
|
1730
|
+
if(self.$aB==null)self.$aB=nil;
|
1731
|
+
if(self.$aC==null)self.$aC=nil;
|
1732
|
+
if(self.$aE==null)self.$aE=nil;
|
1530
1733
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1531
1734
|
;
|
1532
|
-
_a=
|
1533
|
-
|
1534
|
-
self.$t(nil,_a);
|
1535
|
-
self.$t(nil,_a.$aa(nil,"z"));
|
1536
|
-
self.$u(nil,"test native JS array mapping");
|
1537
|
-
_b=self.$t(nil,self.$ab());
|
1538
|
-
return _b}
|
1735
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){_a=("" + (self.$aB).$o() + ("...").$o() + (self.$aC).$o())}else{_a=("" + (self.$aB).$o() + ("..").$o() + (self.$aC).$o())};
|
1736
|
+
return _a}
|
1539
1737
|
|
1540
|
-
|
1541
|
-
/*
|
1542
|
-
function(
|
1738
|
+
,$v:
|
1739
|
+
/* Range#each */
|
1740
|
+
function(_c){var self,_a,_b,_d;
|
1741
|
+
_d=nil;
|
1543
1742
|
self=this;
|
1544
|
-
|
1743
|
+
if(self.$aB==null)self.$aB=nil;
|
1744
|
+
if(self.$aC==null)self.$aC=nil;
|
1745
|
+
if(self.$aE==null)self.$aE=nil;
|
1746
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1545
1747
|
;
|
1546
|
-
|
1547
|
-
|
1748
|
+
_a=self.$aB;
|
1749
|
+
if((_b=self.$aB.$af(nil,self.$aC),_b!==false&&_b!==nil)){return nil};
|
1750
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){while((_b=_a.$Z(nil,self.$aC),_b!==false&&_b!==nil)){_c(_a);
|
1751
|
+
_a=_a.$9()};
|
1752
|
+
_d=nil;
|
1753
|
+
}else{while((_b=_a.$W(nil,self.$aC),_b!==false&&_b!==nil)){_c(_a);
|
1754
|
+
_a=_a.$9()};
|
1755
|
+
_d=nil;
|
1756
|
+
};
|
1757
|
+
return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==67))return _e.a$a;
|
1758
|
+
throw(_e)}}
|
1548
1759
|
|
1549
|
-
,$
|
1550
|
-
/*
|
1551
|
-
function(
|
1760
|
+
,$aI:
|
1761
|
+
/* Range#end */
|
1762
|
+
function(){var self,_a;
|
1763
|
+
_a=nil;
|
1552
1764
|
self=this;
|
1553
|
-
|
1765
|
+
if(self.$aC==null)self.$aC=nil;
|
1766
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1554
1767
|
;
|
1555
|
-
|
1556
|
-
|
1768
|
+
_a=self.$aC;
|
1769
|
+
return _a}
|
1557
1770
|
|
1558
|
-
,$
|
1559
|
-
/*
|
1560
|
-
function(
|
1771
|
+
,$4:
|
1772
|
+
/* Range#first */
|
1773
|
+
function(){var self,_a;
|
1774
|
+
_a=nil;
|
1561
1775
|
self=this;
|
1562
|
-
|
1776
|
+
if(self.$aB==null)self.$aB=nil;
|
1777
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1563
1778
|
;
|
1564
|
-
|
1565
|
-
|
1566
|
-
_b=_b.$ag(nil,1)};
|
1567
|
-
return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==38))return _e.a$a;
|
1568
|
-
throw(_e)}}
|
1779
|
+
_a=self.$aB;
|
1780
|
+
return _a}
|
1569
1781
|
|
1570
|
-
,$
|
1571
|
-
/*
|
1782
|
+
,$aH:
|
1783
|
+
/* Range#include? */
|
1572
1784
|
function(_d,_a){var self,_b,_c;
|
1785
|
+
_c=nil;
|
1573
1786
|
self=this;
|
1787
|
+
if(self.$aB==null)self.$aB=nil;
|
1788
|
+
if(self.$aC==null)self.$aC=nil;
|
1789
|
+
if(self.$aE==null)self.$aE=nil;
|
1574
1790
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1575
1791
|
;
|
1576
|
-
_b=self;
|
1577
|
-
|
1578
|
-
|
1579
|
-
return self}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==37))return _e.a$a;
|
1792
|
+
if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false};
|
1793
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)};
|
1794
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==66))return _e.a$a;
|
1580
1795
|
throw(_e)}}
|
1581
1796
|
|
1582
|
-
,$
|
1583
|
-
/*
|
1584
|
-
function(_b,
|
1797
|
+
,$c:
|
1798
|
+
/* Range#initialize */
|
1799
|
+
function(_f,_a,_b,_c){var self,_d,_e;
|
1800
|
+
_e=nil;
|
1585
1801
|
self=this;
|
1586
|
-
try{if(arguments.length
|
1802
|
+
try{if(arguments.length<3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
1803
|
+
if(arguments.length>4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)'));
|
1804
|
+
if(_c==null)_c=false;
|
1587
1805
|
;
|
1588
|
-
|
1589
|
-
|
1806
|
+
(_d=[_a,_b],self.$aB=_d[0]==null?nil:_d[0],self.$aC=_d[1]==null?nil:_d[1],_d);
|
1807
|
+
_e=self.$aE=((_d=_c,_d!==false&&_d!==nil)?true:false);
|
1808
|
+
return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==65))return _g.a$a;
|
1809
|
+
throw(_g)}}
|
1590
1810
|
|
1591
|
-
,$
|
1592
|
-
/*
|
1593
|
-
function(
|
1811
|
+
,$f:
|
1812
|
+
/* Range#=== */
|
1813
|
+
function(_d,_a){var self,_b,_c;
|
1814
|
+
_c=nil;
|
1594
1815
|
self=this;
|
1816
|
+
if(self.$aB==null)self.$aB=nil;
|
1817
|
+
if(self.$aC==null)self.$aC=nil;
|
1818
|
+
if(self.$aE==null)self.$aE=nil;
|
1595
1819
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1596
1820
|
;
|
1597
|
-
|
1598
|
-
|
1821
|
+
if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false};
|
1822
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)};
|
1823
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==68))return _e.a$a;
|
1824
|
+
throw(_e)}}
|
1599
1825
|
|
1600
|
-
,$
|
1601
|
-
/*
|
1602
|
-
function(){var self;
|
1826
|
+
,$N:
|
1827
|
+
/* Range#to_a */
|
1828
|
+
function(){var self,_a,_b,_c;
|
1603
1829
|
self=this;
|
1830
|
+
if(self.$aB==null)self.$aB=nil;
|
1831
|
+
if(self.$aC==null)self.$aC=nil;
|
1832
|
+
if(self.$aE==null)self.$aE=nil;
|
1604
1833
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1605
1834
|
;
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
;
|
1614
|
-
return self / _a}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==44))return _c.a$a;
|
1615
|
-
throw(_c)}}
|
1835
|
+
_a=[];
|
1836
|
+
if((_b=self.$aB.$af(nil,self.$aC),_b!==false&&_b!==nil)){return _a};
|
1837
|
+
_c=self.$aB;
|
1838
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){while((_b=_c.$Z(nil,self.$aC),_b!==false&&_b!==nil)){_a.$J(nil,_c);
|
1839
|
+
_c=_c.$9()}}else{while((_b=_c.$W(nil,self.$aC),_b!==false&&_b!==nil)){_a.$J(nil,_c);
|
1840
|
+
_c=_c.$9()}};
|
1841
|
+
return _a}
|
1616
1842
|
|
1617
|
-
,$
|
1618
|
-
/*
|
1619
|
-
function(
|
1843
|
+
,$i:
|
1844
|
+
/* Range#inspect */
|
1845
|
+
function(){var self,_b,_a;
|
1846
|
+
_a=nil;
|
1620
1847
|
self=this;
|
1621
|
-
|
1622
|
-
if(
|
1848
|
+
if(self.$aB==null)self.$aB=nil;
|
1849
|
+
if(self.$aC==null)self.$aC=nil;
|
1850
|
+
if(self.$aE==null)self.$aE=nil;
|
1851
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1623
1852
|
;
|
1624
|
-
|
1625
|
-
|
1853
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){_a=("" + (self.$aB.$i()).$o() + ("...").$o() + (self.$aC.$i()).$o())}else{_a=("" + (self.$aB.$i()).$o() + ("..").$o() + (self.$aC.$i()).$o())};
|
1854
|
+
return _a}
|
1626
1855
|
|
1627
|
-
,$
|
1628
|
-
/*
|
1629
|
-
function(
|
1856
|
+
,$aJ:
|
1857
|
+
/* Range#member? */
|
1858
|
+
function(_d,_a){var self,_b,_c;
|
1859
|
+
_c=nil;
|
1630
1860
|
self=this;
|
1861
|
+
if(self.$aB==null)self.$aB=nil;
|
1862
|
+
if(self.$aC==null)self.$aC=nil;
|
1863
|
+
if(self.$aE==null)self.$aE=nil;
|
1631
1864
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
1632
1865
|
;
|
1633
|
-
|
1634
|
-
|
1866
|
+
if((_b=_a.$Z(nil,self.$aB),_b!==false&&_b!==nil)){return false};
|
1867
|
+
if((_b=self.$aE,_b!==false&&_b!==nil)){_c=_a.$Z(nil,self.$aC)}else{_c=_a.$W(nil,self.$aC)};
|
1868
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==69))return _e.a$a;
|
1869
|
+
throw(_e)}}
|
1635
1870
|
|
1636
|
-
|
1637
|
-
/*
|
1638
|
-
function(
|
1871
|
+
}});$a = a$d({a$j: [],a$e: $l,a$c: "ArgumentError"});$z = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1872
|
+
/* T_TestHash::TestHash.main */
|
1873
|
+
function(){var self,_a;
|
1874
|
+
_a=nil;
|
1639
1875
|
self=this;
|
1640
|
-
|
1876
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1641
1877
|
;
|
1642
|
-
|
1643
|
-
|
1878
|
+
_a=self.$a().$G();
|
1879
|
+
return _a}
|
1644
1880
|
|
1645
|
-
|
1646
|
-
/*
|
1647
|
-
function(
|
1881
|
+
},a$c: "T_TestHash::TestHash",a$h: {$B:
|
1882
|
+
/* T_TestHash::TestHash#hash */
|
1883
|
+
function(){var self;
|
1648
1884
|
self=this;
|
1649
|
-
|
1885
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1650
1886
|
;
|
1651
|
-
|
1652
|
-
throw(_c)}}
|
1887
|
+
var el = {}; el["1"] = null; return el}
|
1653
1888
|
|
1654
|
-
,$
|
1655
|
-
/*
|
1656
|
-
function(
|
1889
|
+
,$G:
|
1890
|
+
/* T_TestHash::TestHash#test */
|
1891
|
+
function(){var self,_a,_b,_c;
|
1892
|
+
_c=nil;
|
1657
1893
|
self=this;
|
1658
|
-
|
1894
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1659
1895
|
;
|
1660
|
-
_a
|
1661
|
-
|
1662
|
-
_a
|
1663
|
-
|
1664
|
-
|
1896
|
+
_a=$ad.$aK(nil,"a",6,"b",7,"1",1,1,2,"1,2","hello",[1,2],"good");
|
1897
|
+
self.$t(nil,_a.$X(nil,"a"));
|
1898
|
+
self.$t(nil,_a.$X(nil,"b"));
|
1899
|
+
self.$t(nil,_a.$X(nil,"1"));
|
1900
|
+
self.$t(nil,_a.$X(nil,1));
|
1901
|
+
self.$t(nil,_a.$X(nil,"1,2"));
|
1902
|
+
self.$t(nil,_a.$X(nil,[1,2]));
|
1903
|
+
self.$u(nil,"test native JS hash");
|
1904
|
+
_c=_b=self.$B();
|
1905
|
+
return _c}
|
1665
1906
|
|
1666
|
-
|
1667
|
-
/*
|
1668
|
-
function(
|
1907
|
+
}});$U = a$d({a$j: [],a$e: $4,a$c: "T_TestLebewesen::Katze",a$h: {$e:
|
1908
|
+
/* T_TestLebewesen::Katze#name */
|
1909
|
+
function(){var self,_a;
|
1910
|
+
_a=nil;
|
1669
1911
|
self=this;
|
1670
|
-
|
1671
|
-
;
|
1672
|
-
return
|
1673
|
-
throw(_c)}}
|
1912
|
+
if(self.$aL==null)self.$aL=nil;
|
1913
|
+
_a=self.$aL;
|
1914
|
+
return _a}
|
1674
1915
|
|
1675
|
-
,$
|
1676
|
-
/*
|
1677
|
-
function(){var self;
|
1916
|
+
,$c:
|
1917
|
+
/* T_TestLebewesen::Katze#initialize */
|
1918
|
+
function(_d,_a,_b){var self,_c;
|
1919
|
+
_c=nil;
|
1678
1920
|
self=this;
|
1679
|
-
if(arguments.length
|
1921
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
1680
1922
|
;
|
1681
|
-
|
1923
|
+
a$k(self,'$c',nil,[_a]);
|
1924
|
+
_c=self.$aL=_b;
|
1925
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==70))return _e.a$a;
|
1926
|
+
throw(_e)}}
|
1682
1927
|
|
1683
1928
|
,$ao:
|
1684
|
-
/*
|
1685
|
-
function(
|
1929
|
+
/* T_TestLebewesen::Katze#miau */
|
1930
|
+
function(){var self,_a;
|
1931
|
+
_a=nil;
|
1686
1932
|
self=this;
|
1687
|
-
|
1933
|
+
if(self.$aL==null)self.$aL=nil;
|
1934
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1688
1935
|
;
|
1689
|
-
|
1690
|
-
|
1936
|
+
_a=self.$u(nil,"miau, ich bin ".$R(nil,self.$aL));
|
1937
|
+
return _a}
|
1691
1938
|
|
1692
|
-
|
1693
|
-
/*
|
1694
|
-
function(
|
1939
|
+
}});$I = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1940
|
+
/* T_TestSplat::TestSplat.main */
|
1941
|
+
function(){var self,_a,_b;
|
1942
|
+
_b=nil;
|
1695
1943
|
self=this;
|
1696
|
-
|
1944
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1697
1945
|
;
|
1698
|
-
|
1699
|
-
|
1946
|
+
_a=self.$a();
|
1947
|
+
_a.$at();
|
1948
|
+
_a.$d(nil,'$at',a$b([]));
|
1949
|
+
_a.$at(nil,1);
|
1950
|
+
_a.$d(nil,'$at',a$b([1]));
|
1951
|
+
_a.$d(nil,'$at',[1].concat(a$b([])));
|
1952
|
+
_a.$at(nil,1,2);
|
1953
|
+
_a.$d(nil,'$at',a$b([1,2]));
|
1954
|
+
_a.$d(nil,'$at',[1].concat(a$b([2])));
|
1955
|
+
_b=_a.$d(nil,'$at',[1].concat(a$b([1,2])));
|
1956
|
+
return _b}
|
1700
1957
|
|
1701
|
-
|
1702
|
-
/*
|
1703
|
-
function(){var self;
|
1958
|
+
},a$c: "T_TestSplat::TestSplat",a$h: {$at:
|
1959
|
+
/* T_TestSplat::TestSplat#m */
|
1960
|
+
function(){var self,_a,_b,_c;
|
1961
|
+
_c=nil;
|
1704
1962
|
self=this;
|
1705
|
-
|
1963
|
+
_a=[];
|
1964
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
1706
1965
|
;
|
1707
|
-
|
1966
|
+
_c=self.$t(nil,_a);
|
1967
|
+
return _c}
|
1708
1968
|
|
1709
|
-
|
1710
|
-
/*
|
1711
|
-
function(
|
1969
|
+
}});$ae = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo_"});$af = a$d({a$j: [],a$e: $ae,a$c: "T_TestHotRuby::Bar_::Baz_",a$h: {$aM:
|
1970
|
+
/* T_TestHotRuby::Bar_::Baz_#run */
|
1971
|
+
function(){var self,_a;
|
1972
|
+
_a=nil;
|
1712
1973
|
self=this;
|
1713
|
-
|
1974
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1714
1975
|
;
|
1715
|
-
|
1716
|
-
|
1976
|
+
self.$u(nil,"Foo");
|
1977
|
+
_a=self.$u(nil,"Foo");
|
1978
|
+
return _a}
|
1717
1979
|
|
1718
|
-
|
1719
|
-
/*
|
1720
|
-
function(){var self;
|
1980
|
+
}});$G = a$d({a$j: [],a$e: $k,a$f: {$F:
|
1981
|
+
/* T_TestClass::TestClass.main */
|
1982
|
+
function(){var self,_a;
|
1983
|
+
_a=nil;
|
1721
1984
|
self=this;
|
1722
1985
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1723
1986
|
;
|
1724
|
-
|
1987
|
+
self.$t(nil,$$.$a().$m(nil,$$));
|
1988
|
+
self.$t(nil,$$.$a().$m(nil,$aa));
|
1989
|
+
self.$t(nil,$aa.$a().$m(nil,$$));
|
1990
|
+
self.$t(nil,$$.$a().$m(nil,$_));
|
1991
|
+
self.$t(nil,$aa.$a().$m(nil,$_));
|
1992
|
+
self.$t(nil,$$.$a().$h(nil,$$));
|
1993
|
+
self.$t(nil,$$.$a().$h(nil,$aa));
|
1994
|
+
self.$t(nil,$aa.$a().$h(nil,$$));
|
1995
|
+
self.$t(nil,$$.$a().$h(nil,$_));
|
1996
|
+
self.$t(nil,$aa.$a().$h(nil,$_));
|
1997
|
+
self.$t(nil,$ag.$a().$h(nil,$_));
|
1998
|
+
self.$t(nil,$ag.$a().$h(nil,$$));
|
1999
|
+
self.$t(nil,$ag.$a().$h(nil,$aa));
|
2000
|
+
self.$t(nil,$ag.$a().$h(nil,$ag));
|
2001
|
+
self.$t(nil,$ag.$a().$h(nil,$ah));
|
2002
|
+
self.$t(nil,$ag.$a().$h(nil,$k));
|
2003
|
+
self.$t(nil,$ag.$a().$h(nil,$i));
|
2004
|
+
self.$t(nil,$ag.$a().$h(nil,$b));
|
2005
|
+
self.$t(nil,"hallo".$z().$e());
|
2006
|
+
self.$t(nil,nil.$z().$e());
|
2007
|
+
self.$t(nil,nil.$m(nil,$ai));
|
2008
|
+
self.$t(nil,"hallo".$m(nil,$e));
|
2009
|
+
self.$t(nil,"hallo".$z());
|
2010
|
+
self.$t(nil,$$);
|
2011
|
+
self.$t(nil,$aa);
|
2012
|
+
self.$t(nil,$ag);
|
2013
|
+
self.$t(nil,$ah);
|
2014
|
+
self.$t(nil,$_);
|
2015
|
+
self.$t(nil,$_.$e());
|
2016
|
+
self.$t(nil,$$.$e());
|
2017
|
+
_a=self.$t(nil,$aa.$e());
|
2018
|
+
return _a}
|
1725
2019
|
|
1726
|
-
|
1727
|
-
/*
|
1728
|
-
function(
|
2020
|
+
},a$c: "T_TestClass::TestClass"});$M = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2021
|
+
/* T_TestArray::TestArray.main */
|
2022
|
+
function(){var self,_a;
|
2023
|
+
_a=nil;
|
1729
2024
|
self=this;
|
1730
|
-
|
2025
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1731
2026
|
;
|
1732
|
-
|
1733
|
-
|
2027
|
+
_a=self.$a().$G();
|
2028
|
+
return _a}
|
1734
2029
|
|
1735
|
-
|
1736
|
-
/*
|
1737
|
-
function(){var self;
|
2030
|
+
},a$c: "T_TestArray::TestArray",a$h: {$aO:
|
2031
|
+
/* T_TestArray::TestArray#array */
|
2032
|
+
function(){var self,_a;
|
2033
|
+
_a=nil;
|
1738
2034
|
self=this;
|
1739
2035
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1740
2036
|
;
|
1741
|
-
|
2037
|
+
_a=[1,2,null,[null,null,4]];
|
2038
|
+
return _a}
|
1742
2039
|
|
1743
|
-
|
1744
|
-
/*
|
1745
|
-
function(){var self;
|
2040
|
+
,$G:
|
2041
|
+
/* T_TestArray::TestArray#test */
|
2042
|
+
function(){var self,_a,_b;
|
2043
|
+
_b=nil;
|
1746
2044
|
self=this;
|
1747
2045
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1748
2046
|
;
|
1749
|
-
|
2047
|
+
_a=["a","b","b","b","c"];
|
2048
|
+
self.$t(nil,_a.$aN(nil,"b"));
|
2049
|
+
self.$t(nil,_a);
|
2050
|
+
self.$t(nil,_a.$aN(nil,"z"));
|
2051
|
+
self.$u(nil,"test native JS array mapping");
|
2052
|
+
_b=self.$t(nil,self.$aO());
|
2053
|
+
return _b}
|
1750
2054
|
|
1751
|
-
},a$c: "
|
1752
|
-
/*
|
1753
|
-
function(
|
2055
|
+
}});$aj = a$d({a$j: [],a$e: nil,a$c: "T_TestString"});a$d({a$j: [],a$g: $b});$c = a$d({a$j: [],a$e: $l,a$c: "RuntimeError"});$3 = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Hoge",a$h: {$as:
|
2056
|
+
/* T_TestHotRuby::Hoge#add_msg */
|
2057
|
+
function(_a){var self,_b,_c;
|
2058
|
+
_c=nil;
|
1754
2059
|
self=this;
|
1755
|
-
|
2060
|
+
_b=_a==null?nil:_a;
|
2061
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1756
2062
|
;
|
1757
|
-
|
1758
|
-
|
2063
|
+
_c=_b.$K(nil,"is");
|
2064
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==71))return _d.a$a;
|
2065
|
+
throw(_d)}}
|
1759
2066
|
|
1760
|
-
|
1761
|
-
/*
|
1762
|
-
function(
|
2067
|
+
}});$ak = a$d({a$j: [],a$e: nil,a$c: "T_TestCase"});$al = a$d({a$j: [],a$e: nil,a$c: "T_TestEql"});$2 = a$d({a$j: [],a$e: $s,a$c: "Fixnum",a$d: Number});$am = a$d({a$j: [],a$e: nil,a$c: "T_TestHash"});$ah = a$d({a$j: [],a$e: $k,a$c: "T_TestClass::D"});$A = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2068
|
+
/* T_TestYield::TestYield.main */
|
2069
|
+
function(){var self,_a;
|
2070
|
+
_a=nil;
|
1763
2071
|
self=this;
|
1764
|
-
|
2072
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1765
2073
|
;
|
1766
|
-
|
1767
|
-
|
2074
|
+
_a=self.$a().$G();
|
2075
|
+
return _a}
|
1768
2076
|
|
1769
|
-
|
1770
|
-
/*
|
1771
|
-
function(
|
2077
|
+
},a$c: "T_TestYield::TestYield",a$h: {$aQ:
|
2078
|
+
/* T_TestYield::TestYield#test_loop2 */
|
2079
|
+
function(){var self,_a,_b,_d,_f;
|
2080
|
+
_f=nil;
|
1772
2081
|
self=this;
|
1773
|
-
try{if(arguments.length
|
2082
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1774
2083
|
;
|
2084
|
+
self.$u(nil,"loop2");
|
2085
|
+
_a=0;
|
2086
|
+
_b=self.$aR(function(){var _e=nil;
|
2087
|
+
;
|
2088
|
+
_a=_a.$R(nil,1);
|
2089
|
+
if((_d=_a.$$(nil,2).$8(nil,1),_d!==false&&_d!==nil)){return nil};
|
2090
|
+
self.$t(nil,_a);
|
2091
|
+
if((_d=_a.$af(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil};
|
2092
|
+
return _e});
|
2093
|
+
self.$t(nil,_b);
|
2094
|
+
_f=self.$u(nil,"--");
|
2095
|
+
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==73))return _g.a$a;
|
2096
|
+
throw(_g)}}
|
1775
2097
|
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
{
|
1781
|
-
self.splice(i,1);
|
1782
|
-
del = true;
|
1783
|
-
// stay at the current index unless we are at the last element!
|
1784
|
-
if (i < self.length-1) --i;
|
1785
|
-
}
|
1786
|
-
}
|
1787
|
-
return del ? _a : nil}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==54))return _c.a$a;
|
1788
|
-
throw(_c)}}
|
1789
|
-
|
1790
|
-
,$as:
|
1791
|
-
/* Array#size */
|
1792
|
-
function(){var self;
|
2098
|
+
,$aP:
|
2099
|
+
/* T_TestYield::TestYield#three_times_block */
|
2100
|
+
function(_a){var self,_b,_c;
|
2101
|
+
_c=nil;
|
1793
2102
|
self=this;
|
1794
|
-
|
2103
|
+
_b=_a==null?nil:_a;
|
2104
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1795
2105
|
;
|
1796
|
-
|
2106
|
+
_b.$K(nil,1);
|
2107
|
+
_b.$K(nil,2);
|
2108
|
+
_c=_b.$K(nil,3);
|
2109
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==72))return _d.a$a;
|
2110
|
+
throw(_d)}}
|
1797
2111
|
|
1798
|
-
,$
|
1799
|
-
/*
|
1800
|
-
function(
|
2112
|
+
,$aT:
|
2113
|
+
/* T_TestYield::TestYield#return_in_block */
|
2114
|
+
function(_a){var self,_b,_c;
|
2115
|
+
_c=nil;
|
1801
2116
|
self=this;
|
1802
|
-
|
2117
|
+
_b=_a==null?nil:_a;
|
2118
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1803
2119
|
;
|
1804
|
-
|
1805
|
-
|
2120
|
+
self.$t(nil,"return_in_block before");
|
2121
|
+
_b.$K();
|
2122
|
+
_c=self.$t(nil,"return_in_block after");
|
2123
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==74))return _d.a$a;
|
2124
|
+
throw(_d)}}
|
1806
2125
|
|
1807
|
-
,$
|
1808
|
-
/*
|
1809
|
-
function(){var self;
|
2126
|
+
,$aS:
|
2127
|
+
/* T_TestYield::TestYield#test_while_loop */
|
2128
|
+
function(){var self,_a,_b,_c;
|
2129
|
+
_c=nil;
|
1810
2130
|
self=this;
|
1811
2131
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1812
2132
|
;
|
1813
|
-
self
|
2133
|
+
self.$u(nil,"while-loop");
|
2134
|
+
_a=0;
|
2135
|
+
while(true){_a=_a.$R(nil,1);
|
2136
|
+
if((_b=_a.$$(nil,2).$8(nil,1),_b!==false&&_b!==nil)){continue};
|
2137
|
+
self.$t(nil,_a);
|
2138
|
+
if((_b=_a.$af(nil,8),_b!==false&&_b!==nil)){break}};
|
2139
|
+
self.$u(nil,"----");
|
2140
|
+
while((_b=_a.$af(nil,0),_b!==false&&_b!==nil)){self.$t(nil,_a);
|
2141
|
+
_a=_a.$U(nil,1)};
|
2142
|
+
_c=self.$u(nil,"--");
|
2143
|
+
return _c}
|
1814
2144
|
|
1815
|
-
,$
|
1816
|
-
/*
|
1817
|
-
function(
|
2145
|
+
,$aR:
|
2146
|
+
/* T_TestYield::TestYield#loop2 */
|
2147
|
+
function(_a){var self,_b,_c;
|
2148
|
+
_c=nil;
|
1818
2149
|
self=this;
|
1819
|
-
|
1820
|
-
;
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
2150
|
+
_b=_a==null?nil:_a;
|
2151
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2152
|
+
;
|
2153
|
+
while(true){_b.$K()};
|
2154
|
+
_c=self.$t(nil,"not reached");
|
2155
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==76))return _d.a$a;
|
2156
|
+
throw(_d)}}
|
1824
2157
|
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
throw(_c)}}
|
2158
|
+
,$aW:
|
2159
|
+
/* T_TestYield::TestYield#test_proc */
|
2160
|
+
function(){var self,_a,_d;
|
2161
|
+
_d=nil;
|
2162
|
+
self=this;
|
2163
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2164
|
+
;
|
2165
|
+
self.$t(nil,"test_proc");
|
2166
|
+
_a=self.$s(function(){;
|
2167
|
+
throw(new a$c(0,75))});
|
2168
|
+
self.$t(nil,_a.$K());
|
2169
|
+
_a=$h.$a(function(){;
|
2170
|
+
throw(new a$c(3,null))});
|
2171
|
+
_d=self.$t(nil,_a.$K());
|
2172
|
+
return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==75))return _e.a$a;
|
2173
|
+
throw(_e)}}
|
1842
2174
|
|
1843
|
-
,$
|
1844
|
-
/*
|
1845
|
-
function(){var self;
|
2175
|
+
,$aU:
|
2176
|
+
/* T_TestYield::TestYield#test_three_times_indirect */
|
2177
|
+
function(){var self,_d;
|
2178
|
+
_d=nil;
|
1846
2179
|
self=this;
|
1847
2180
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1848
2181
|
;
|
1849
|
-
|
2182
|
+
self.$u(nil,"three_times_indirect");
|
2183
|
+
self.$aV(function(_a){var _b;
|
2184
|
+
var _c=nil;
|
2185
|
+
_b=_a==null?nil:_a;
|
2186
|
+
_c=self.$t(nil,_b);
|
2187
|
+
return _c});
|
2188
|
+
_d=self.$u(nil,"--");
|
2189
|
+
return _d}
|
1850
2190
|
|
1851
|
-
,$
|
1852
|
-
/*
|
1853
|
-
function(){var self;
|
2191
|
+
,$aX:
|
2192
|
+
/* T_TestYield::TestYield#test_three_times_yield2 */
|
2193
|
+
function(){var self,_d,_e;
|
2194
|
+
_e=nil;
|
1854
2195
|
self=this;
|
1855
2196
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1856
2197
|
;
|
1857
|
-
|
2198
|
+
self.$u(nil,"three_times_yield2");
|
2199
|
+
_e=self.$aY(function(_a){var _b;
|
2200
|
+
var _c=nil;
|
2201
|
+
_b=_a==null?nil:_a;
|
2202
|
+
if((_d=_b.$8(nil,1),_d!==false&&_d!==nil)){_c=_b}else{return _b.$R(nil,1)};
|
2203
|
+
return _c});
|
2204
|
+
return _e}
|
1858
2205
|
|
1859
|
-
,$
|
1860
|
-
/*
|
2206
|
+
,$a0:
|
2207
|
+
/* T_TestYield::TestYield#test_loop */
|
2208
|
+
function(){var self,_a,_b,_d,_f;
|
2209
|
+
_f=nil;
|
2210
|
+
self=this;
|
2211
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2212
|
+
;
|
2213
|
+
self.$u(nil,"loop");
|
2214
|
+
_a=0;
|
2215
|
+
_b=self.$x(function(){var _e=nil;
|
2216
|
+
;
|
2217
|
+
_a=_a.$R(nil,1);
|
2218
|
+
if((_d=_a.$$(nil,2).$8(nil,1),_d!==false&&_d!==nil)){return nil};
|
2219
|
+
self.$t(nil,_a);
|
2220
|
+
if((_d=_a.$af(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil};
|
2221
|
+
return _e});
|
2222
|
+
self.$t(nil,_b);
|
2223
|
+
_f=self.$u(nil,"--");
|
2224
|
+
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==77))return _g.a$a;
|
2225
|
+
throw(_g)}}
|
2226
|
+
|
2227
|
+
,$aZ:
|
2228
|
+
/* T_TestYield::TestYield#test_three_times_block */
|
1861
2229
|
function(){var self,_d;
|
1862
2230
|
_d=nil;
|
1863
2231
|
self=this;
|
1864
2232
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1865
2233
|
;
|
1866
|
-
|
2234
|
+
self.$u(nil,"three_times_block");
|
2235
|
+
self.$aP(function(_a){var _b;
|
1867
2236
|
var _c=nil;
|
1868
2237
|
_b=_a==null?nil:_a;
|
1869
|
-
_c=
|
1870
|
-
return _c})
|
2238
|
+
_c=self.$t(nil,_b);
|
2239
|
+
return _c});
|
2240
|
+
_d=self.$u(nil,"--");
|
1871
2241
|
return _d}
|
1872
2242
|
|
1873
|
-
,$
|
1874
|
-
/*
|
1875
|
-
function(
|
2243
|
+
,$G:
|
2244
|
+
/* T_TestYield::TestYield#test */
|
2245
|
+
function(){var self,_b,_c,_d;
|
2246
|
+
_d=nil;
|
1876
2247
|
self=this;
|
1877
|
-
|
2248
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1878
2249
|
;
|
1879
|
-
|
1880
|
-
|
2250
|
+
self.$a1();
|
2251
|
+
self.$aZ();
|
2252
|
+
self.$aU();
|
2253
|
+
self.$aX();
|
2254
|
+
self.$a0();
|
2255
|
+
self.$aQ();
|
2256
|
+
self.$aS();
|
2257
|
+
try{self.$aW()}catch(_a){if(_a instanceof a$c)throw(_a);
|
2258
|
+
if((_c=$Y.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
2259
|
+
self.$t(nil,_b)}else{throw(_a)}};
|
2260
|
+
_d=self.$t(nil,self.$a2());
|
2261
|
+
return _d}
|
1881
2262
|
|
1882
|
-
,$
|
1883
|
-
/*
|
1884
|
-
function(_a){var self;
|
2263
|
+
,$x:
|
2264
|
+
/* T_TestYield::TestYield#loop */
|
2265
|
+
function(_a){var self,_b;
|
2266
|
+
_b=nil;
|
1885
2267
|
self=this;
|
1886
2268
|
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1887
2269
|
;
|
2270
|
+
while(true){_a()};
|
2271
|
+
_b=self.$t(nil,"not reached");
|
2272
|
+
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==80))return _c.a$a;
|
2273
|
+
throw(_c)}}
|
1888
2274
|
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
throw(
|
2275
|
+
,$aV:
|
2276
|
+
/* T_TestYield::TestYield#three_times_indirect */
|
2277
|
+
function(_a){var self,_b,_c;
|
2278
|
+
_c=nil;
|
2279
|
+
self=this;
|
2280
|
+
_b=_a==null?nil:_a;
|
2281
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2282
|
+
;
|
2283
|
+
self.$a3(_b);
|
2284
|
+
_c=self.$aP(_b);
|
2285
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==79))return _d.a$a;
|
2286
|
+
throw(_d)}}
|
1896
2287
|
|
1897
|
-
,$
|
1898
|
-
/*
|
1899
|
-
function(_a){var self;
|
2288
|
+
,$a3:
|
2289
|
+
/* T_TestYield::TestYield#three_times_yield */
|
2290
|
+
function(_a){var self,_b;
|
2291
|
+
_b=nil;
|
1900
2292
|
self=this;
|
1901
2293
|
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1902
2294
|
;
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
}
|
1909
|
-
return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==59))return _b.a$a;
|
1910
|
-
throw(_b)}}
|
2295
|
+
_a(1);
|
2296
|
+
_a(2);
|
2297
|
+
_b=_a(3);
|
2298
|
+
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==78))return _c.a$a;
|
2299
|
+
throw(_c)}}
|
1911
2300
|
|
1912
|
-
,$
|
1913
|
-
/*
|
1914
|
-
function(){var self;
|
2301
|
+
,$aY:
|
2302
|
+
/* T_TestYield::TestYield#three_times_yield2 */
|
2303
|
+
function(_a){var self,_b;
|
2304
|
+
_b=nil;
|
1915
2305
|
self=this;
|
1916
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2306
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1917
2307
|
;
|
1918
|
-
|
2308
|
+
self.$t(nil,_a(1));
|
2309
|
+
self.$t(nil,_a(2));
|
2310
|
+
_b=self.$t(nil,_a(3));
|
2311
|
+
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==81))return _c.a$a;
|
2312
|
+
throw(_c)}}
|
1919
2313
|
|
1920
|
-
,$
|
1921
|
-
/*
|
1922
|
-
function(){var self;
|
2314
|
+
,$a2:
|
2315
|
+
/* T_TestYield::TestYield#test_return_in_block */
|
2316
|
+
function(){var self,_b;
|
2317
|
+
_b=nil;
|
1923
2318
|
self=this;
|
1924
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2319
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1925
2320
|
;
|
1926
|
-
|
2321
|
+
self.$t(nil,"before");
|
2322
|
+
self.$aT(function(){;
|
2323
|
+
throw(new a$c(4,82))});
|
2324
|
+
_b=self.$t(nil,"after (NOT)");
|
2325
|
+
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==82))return _c.a$a;
|
2326
|
+
throw(_c)}}
|
1927
2327
|
|
1928
|
-
,$
|
1929
|
-
/*
|
1930
|
-
function(){var self;
|
2328
|
+
,$a1:
|
2329
|
+
/* T_TestYield::TestYield#test_three_times_yield */
|
2330
|
+
function(){var self,_d;
|
2331
|
+
_d=nil;
|
1931
2332
|
self=this;
|
1932
2333
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1933
2334
|
;
|
2335
|
+
self.$u(nil,"three_times_yield");
|
2336
|
+
self.$a3(function(_a){var _b;
|
2337
|
+
var _c=nil;
|
2338
|
+
_b=_a==null?nil:_a;
|
2339
|
+
_c=self.$t(nil,_b);
|
2340
|
+
return _c});
|
2341
|
+
_d=self.$u(nil,"--");
|
2342
|
+
return _d}
|
1934
2343
|
|
1935
|
-
|
1936
|
-
|
2344
|
+
}});$an = a$d({a$j: [],a$e: $k,a$c: "Boolean",a$d: Boolean,a$h: {$8:
|
2345
|
+
/* Boolean#== */
|
2346
|
+
function(_b,_a){var self;
|
2347
|
+
self=this;
|
2348
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2349
|
+
;
|
2350
|
+
return (self == _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==83))return _c.a$a;
|
2351
|
+
throw(_c)}}
|
1937
2352
|
|
1938
|
-
,$
|
1939
|
-
/*
|
2353
|
+
,$o:
|
2354
|
+
/* Boolean#to_s */
|
1940
2355
|
function(){var self;
|
1941
2356
|
self=this;
|
1942
2357
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1943
2358
|
;
|
2359
|
+
return (self == true ? 'true' : 'false')}
|
1944
2360
|
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
,$l:
|
1949
|
-
/* Array#empty? */
|
2361
|
+
,$i:
|
2362
|
+
/* Boolean#inspect */
|
1950
2363
|
function(){var self;
|
1951
2364
|
self=this;
|
1952
2365
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1953
2366
|
;
|
1954
|
-
return (self
|
2367
|
+
return (self == true ? 'true' : 'false')}
|
1955
2368
|
|
1956
|
-
|
1957
|
-
/*
|
2369
|
+
}});$ac = a$d({a$j: [],a$e: $l,a$c: "NameError"});$g = a$d({a$j: [],a$e: $ac,a$c: "NoMethodError"});$P = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2370
|
+
/* T_TestRange::TestRange.main */
|
1958
2371
|
function(){var self,_a;
|
1959
2372
|
_a=nil;
|
1960
2373
|
self=this;
|
1961
2374
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1962
2375
|
;
|
1963
|
-
_a=self;
|
2376
|
+
_a=self.$a().$G();
|
1964
2377
|
return _a}
|
1965
2378
|
|
1966
|
-
|
1967
|
-
/*
|
1968
|
-
function(){var self,_a,_b;
|
2379
|
+
},a$c: "T_TestRange::TestRange",a$h: {$G:
|
2380
|
+
/* T_TestRange::TestRange#test */
|
2381
|
+
function(){var _j,self,_a,_b,_i,_n;
|
2382
|
+
_n=nil;
|
1969
2383
|
self=this;
|
1970
|
-
|
1971
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
2384
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1972
2385
|
;
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
2386
|
+
_a=$v.$a(nil,0,2);
|
2387
|
+
self.$t(nil,_a.$4());
|
2388
|
+
self.$t(nil,_a.$aD());
|
2389
|
+
self.$t(nil,_a);
|
2390
|
+
_b=1;
|
2391
|
+
self.$t(nil,$v.$a(nil,_b,_b.$R(nil,5),false).$o());
|
2392
|
+
self.$t(nil,$v.$a(nil,_b,_b.$R(nil,_b),true).$o());
|
2393
|
+
self.$t(nil,$v.$a(nil,0,2,false).$o());
|
2394
|
+
self.$t(nil,$v.$a(nil,0,2,true).$o());
|
2395
|
+
$v.$a(nil,0,4,false).$v(function(_c){var _d=nil;
|
2396
|
+
_b=_c==null?nil:_c;
|
2397
|
+
_d=self.$t(nil,_b);
|
2398
|
+
return _d});
|
2399
|
+
$v.$a(nil,0,4,true).$v(function(_e){var _f=nil;
|
2400
|
+
_b=_e==null?nil:_e;
|
2401
|
+
_f=self.$t(nil,_b);
|
2402
|
+
return _f});
|
2403
|
+
$v.$a(nil,-1,-4,false).$v(function(_g){var _h=nil;
|
2404
|
+
_b=_g==null?nil:_g;
|
2405
|
+
_h=self.$t(nil,_b);
|
2406
|
+
return _h});
|
2407
|
+
self.$t(nil,$v.$a(nil,0,4,false).$aH(nil,4));
|
2408
|
+
self.$t(nil,$v.$a(nil,0,4,false).$aH(nil,5));
|
2409
|
+
self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,5));
|
2410
|
+
self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,4));
|
2411
|
+
self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,3));
|
2412
|
+
self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,0));
|
2413
|
+
self.$t(nil,$v.$a(nil,0,4,true).$aH(nil,-1));
|
2414
|
+
self.$t(nil,$v.$a(nil,-1,-5,false).$N());
|
2415
|
+
self.$t(nil,$v.$a(nil,-5,-1,false).$N());
|
2416
|
+
_i=$v.$a(nil,0,4);
|
2417
|
+
self.$t(nil,_i.$4());
|
2418
|
+
self.$t(nil,_i.$aG());
|
2419
|
+
self.$t(nil,_i.$aD());
|
2420
|
+
self.$t(nil,_i.$aI());
|
2421
|
+
self.$t(nil,_i.$aF());
|
2422
|
+
_i=$v.$a(nil,1,5,true);
|
2423
|
+
self.$t(nil,_i.$4());
|
2424
|
+
self.$t(nil,_i.$aG());
|
2425
|
+
self.$t(nil,_i.$aD());
|
2426
|
+
self.$t(nil,_i.$aI());
|
2427
|
+
self.$t(nil,_i.$aF());
|
2428
|
+
self.$t(nil,false.$8(nil,false));
|
2429
|
+
self.$t(nil,false.$8(nil,true));
|
2430
|
+
self.$t(nil,true.$8(nil,false));
|
2431
|
+
self.$t(nil,true.$8(nil,true));
|
2432
|
+
self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2,false)));
|
2433
|
+
self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2)));
|
2434
|
+
self.$t(nil,$v.$a(nil,0,2,false).$8(nil,$v.$a(nil,0,2,true)));
|
2435
|
+
_j=55;
|
2436
|
+
self.$t(nil,_j);
|
2437
|
+
$v.$a(nil,1,100,false).$v(function(_k){var _l=nil;
|
2438
|
+
_b=_k==null?nil:_k;
|
2439
|
+
_l=_j=_b;
|
2440
|
+
return _l});
|
2441
|
+
self.$t(nil,_j);
|
2442
|
+
_j=54;
|
2443
|
+
self.$t(nil,_j);
|
2444
|
+
$v.$a(nil,1,100,false).$v(function(_m){_j=_m==null?nil:_m;
|
2445
|
+
});
|
2446
|
+
_n=self.$t(nil,_j);
|
2447
|
+
return _n}
|
2448
|
+
|
2449
|
+
}});$ao = a$d({a$j: [],a$e: nil,a$c: "T_TestInsertionSort"});$N = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2450
|
+
/* T_TestEql::TestEql.main */
|
1977
2451
|
function(){var self,_a;
|
1978
2452
|
_a=nil;
|
1979
2453
|
self=this;
|
1980
2454
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1981
2455
|
;
|
1982
|
-
|
2456
|
+
self.$t(nil,"a".$g(nil,"a"));
|
2457
|
+
self.$t(nil,"a".$g(nil,1));
|
2458
|
+
self.$t(nil,"1".$g(nil,1));
|
2459
|
+
self.$t(nil,[1,2].$g(nil,[1,2]));
|
2460
|
+
_a=self.$t(nil,(1).$g(nil,"1"));
|
1983
2461
|
return _a}
|
1984
2462
|
|
1985
|
-
|
1986
|
-
/*
|
1987
|
-
function(){var self;
|
2463
|
+
},a$c: "T_TestEql::TestEql"});$J = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2464
|
+
/* T_TestString::TestString.main */
|
2465
|
+
function(){var self,_a;
|
2466
|
+
_a=nil;
|
1988
2467
|
self=this;
|
1989
2468
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
1990
2469
|
;
|
1991
|
-
|
2470
|
+
_a=self.$a().$G();
|
2471
|
+
return _a}
|
1992
2472
|
|
1993
|
-
|
1994
|
-
/*
|
1995
|
-
function(){var self,_a,
|
1996
|
-
|
2473
|
+
},a$c: "T_TestString::TestString",a$h: {$G:
|
2474
|
+
/* T_TestString::TestString#test */
|
2475
|
+
function(){var self,_a,_i;
|
2476
|
+
_i=nil;
|
1997
2477
|
self=this;
|
1998
|
-
if(
|
1999
|
-
;
|
2000
|
-
_a="[";
|
2001
|
-
_a=_a.$L(nil,self.$Q(function(_b){var _c;
|
2002
|
-
var _d=nil;
|
2003
|
-
_c=_b==null?nil:_b;
|
2004
|
-
_d=_c.$i();
|
2005
|
-
return _d}).$W(nil,", "));
|
2006
|
-
_a=_a.$L(nil,"]");
|
2007
|
-
_e=_a;
|
2008
|
-
return _e}
|
2009
|
-
|
2010
|
-
,$aC:
|
2011
|
-
/* Array#reverse! */
|
2012
|
-
function(){var self;
|
2013
|
-
self=this;
|
2014
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2015
|
-
;
|
2016
|
-
self.reverse(); return self}
|
2017
|
-
|
2018
|
-
,$aB:
|
2019
|
-
/* Array#unshift */
|
2020
|
-
function(){var self,_a,_b;
|
2021
|
-
self=this;
|
2022
|
-
_a=[];
|
2023
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
2024
|
-
;
|
2025
|
-
self.unshift.apply(self, _a); return self}
|
2026
|
-
|
2027
|
-
,$W:
|
2028
|
-
/* Array#join */
|
2029
|
-
function(_i,_a){var self,_b,_d,_h;
|
2030
|
-
_h=nil;
|
2031
|
-
self=this;
|
2032
|
-
try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2033
|
-
if(_a==null)_a="";
|
2034
|
-
;
|
2035
|
-
_b="";
|
2036
|
-
self.$ax(function(_c){var _e,_f;
|
2037
|
-
var _g=nil;
|
2038
|
-
(_d=a$j(_c),_e=_d[0]==null?nil:_d[0],_f=_d[1]==null?nil:_d[1],_d);
|
2039
|
-
_b=_b.$L(nil,_e.$o());
|
2040
|
-
if((_d=_f.$D(nil,self.$0().$ag(nil,1)),_d===false||_d===nil)){_g=_b=_b.$L(nil,_a)}else{_g=nil};
|
2041
|
-
return _g});
|
2042
|
-
_h=_b;
|
2043
|
-
return _h}catch(_j){if(_j instanceof a$c && (!_j.a$b || _j.a$b==62))return _j.a$a;
|
2044
|
-
throw(_j)}}
|
2045
|
-
|
2046
|
-
}});$6 = a$d({a$j: [],a$e: $k,a$c: "T_TestClass::D"});$V = a$d({a$j: [],a$e: $k,a$f: {$G:
|
2047
|
-
/* T_TestEql::TestEql.main */
|
2048
|
-
function(){var self,_a;
|
2049
|
-
_a=nil;
|
2050
|
-
self=this;
|
2051
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2052
|
-
;
|
2053
|
-
self.$t(nil,"a".$g(nil,"a"));
|
2054
|
-
self.$t(nil,"a".$g(nil,1));
|
2055
|
-
self.$t(nil,"1".$g(nil,1));
|
2056
|
-
self.$t(nil,[1,2].$g(nil,[1,2]));
|
2057
|
-
_a=self.$t(nil,(1).$g(nil,"1"));
|
2058
|
-
return _a}
|
2059
|
-
|
2060
|
-
},a$c: "T_TestEql::TestEql"});$R = a$d({a$j: [],a$e: $k,a$f: {$G:
|
2061
|
-
/* T_TestString::TestString.main */
|
2062
|
-
function(){var self,_a;
|
2063
|
-
_a=nil;
|
2064
|
-
self=this;
|
2065
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2066
|
-
;
|
2067
|
-
_a=self.$a().$K();
|
2068
|
-
return _a}
|
2069
|
-
|
2070
|
-
},a$c: "T_TestString::TestString",a$h: {$K:
|
2071
|
-
/* T_TestString::TestString#test */
|
2072
|
-
function(){var self,_a,_i;
|
2073
|
-
_i=nil;
|
2074
|
-
self=this;
|
2075
|
-
if(self.$aH==null)self.$aH=nil;
|
2076
|
-
if(self.$aI==null)self.$aI=nil;
|
2478
|
+
if(self.$a4==null)self.$a4=nil;
|
2479
|
+
if(self.$an==null)self.$an=nil;
|
2077
2480
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2078
2481
|
;
|
2079
2482
|
self.$t(nil,"hello");
|
2080
2483
|
self.$t(nil,"hallo\b\t\n");
|
2081
2484
|
self.$t(nil,"hallo\\leute");
|
2082
2485
|
self.$t(nil,"\"super\"");
|
2083
|
-
self.$t(nil,"hello".$
|
2084
|
-
self.$t(nil,"hello".$
|
2085
|
-
self.$t(nil,"hello".$
|
2086
|
-
self.$t(nil,"hello hello".$
|
2087
|
-
self.$t(nil,"hello hello".$
|
2088
|
-
self.$t(nil,"hallo".$
|
2089
|
-
self.$t(nil,"hallo".$
|
2090
|
-
self.$t(nil,"hallo".$
|
2091
|
-
self.$t(nil,"10".$
|
2092
|
-
self.$t(nil,"10".$
|
2093
|
-
self.$t(nil,"x".$
|
2094
|
-
self.$t(nil,"10".$
|
2095
|
-
self.$t(nil,"10".$
|
2096
|
-
self.$t(nil,"x".$
|
2097
|
-
self.$t(nil,("abc " + ((1).$
|
2098
|
-
self.$
|
2099
|
-
self.$
|
2100
|
-
self.$t(nil,("" + (self.$
|
2101
|
-
_a="hallo".$
|
2486
|
+
self.$t(nil,"hello".$2(nil,"e"));
|
2487
|
+
self.$t(nil,"hello".$2(nil,"lo"));
|
2488
|
+
self.$t(nil,"hello".$2(nil,"a"));
|
2489
|
+
self.$t(nil,"hello hello".$2(nil,"ll"));
|
2490
|
+
self.$t(nil,"hello hello".$2(nil,"ll",3));
|
2491
|
+
self.$t(nil,"hallo".$X(nil,0,1));
|
2492
|
+
self.$t(nil,"hallo".$X(nil,0,2));
|
2493
|
+
self.$t(nil,"hallo".$X(nil,0,5));
|
2494
|
+
self.$t(nil,"10".$T(nil,10,"0"));
|
2495
|
+
self.$t(nil,"10".$T(nil,1,"blah"));
|
2496
|
+
self.$t(nil,"x".$T(nil,4,"()"));
|
2497
|
+
self.$t(nil,"10".$Y(nil,10,"0"));
|
2498
|
+
self.$t(nil,"10".$Y(nil,1,"blah"));
|
2499
|
+
self.$t(nil,"x".$Y(nil,4,"()"));
|
2500
|
+
self.$t(nil,("abc " + ((1).$R(nil,2)).$o() + (" def").$o()));
|
2501
|
+
self.$an="hallo".$i();
|
2502
|
+
self.$a4=4.5;
|
2503
|
+
self.$t(nil,("" + (self.$an).$o() + (",").$o() + (self.$a4).$o()));
|
2504
|
+
_a="hallo".$3(nil,"l","r");
|
2102
2505
|
self.$t(nil,_a);
|
2103
|
-
_a="hallo".$
|
2506
|
+
_a="hallo".$3(nil,/ll/,"rr");
|
2104
2507
|
self.$t(nil,_a);
|
2105
|
-
_a="hallo".$
|
2508
|
+
_a="hallo".$3(function(){var _c=nil;
|
2106
2509
|
;
|
2107
2510
|
_c="r";
|
2108
2511
|
return _c},/l/);
|
2109
2512
|
self.$t(nil,_a);
|
2110
|
-
_a="hallo".$
|
2513
|
+
_a="hallo".$3(function(){var _e=nil;
|
2111
2514
|
;
|
2112
2515
|
_e="blah blah";
|
2113
2516
|
return _e},/ll/);
|
2114
2517
|
self.$t(nil,_a);
|
2115
|
-
_i="hallllllo".$
|
2518
|
+
_i="hallllllo".$3(function(_f){var _g;
|
2116
2519
|
var _h=nil;
|
2117
2520
|
_g=_f==null?nil:_f;
|
2118
2521
|
_h=self.$t(nil,_g);
|
2119
2522
|
return _h},/(l)l/);
|
2120
2523
|
return _i}
|
2121
2524
|
|
2122
|
-
}});$
|
2123
|
-
/*
|
2124
|
-
function(){var self,_a;
|
2125
|
-
_a=nil;
|
2525
|
+
}});$ad = a$d({a$j: [$r],a$e: $k,a$f: {$aK:
|
2526
|
+
/* Hash.new_from_key_value_list */
|
2527
|
+
function(){var self,_a,_b,_c;
|
2126
2528
|
self=this;
|
2127
|
-
|
2529
|
+
_a=[];
|
2530
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
2128
2531
|
;
|
2129
|
-
_a
|
2130
|
-
|
2532
|
+
if((_b=_a.$V().$$(nil,2).$8(nil,0),_b===false||_b===nil)){self.$j(nil,$a)};
|
2533
|
+
_c=self.$b();
|
2131
2534
|
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
_c=_b==null?nil:_b;
|
2148
|
-
_d=self.$t(nil,_c);
|
2149
|
-
return _d});
|
2150
|
-
$v.$a(nil,0,4,true).$v(function(_e){var _c;
|
2151
|
-
var _f=nil;
|
2152
|
-
_c=_e==null?nil:_e;
|
2153
|
-
_f=self.$t(nil,_c);
|
2154
|
-
return _f});
|
2155
|
-
$v.$a(nil,-1,-4,false).$v(function(_g){var _c;
|
2156
|
-
var _h=nil;
|
2157
|
-
_c=_g==null?nil:_g;
|
2158
|
-
_h=self.$t(nil,_c);
|
2159
|
-
return _h});
|
2160
|
-
self.$t(nil,$v.$a(nil,0,4,false).$aK(nil,4));
|
2161
|
-
self.$t(nil,$v.$a(nil,0,4,false).$aK(nil,5));
|
2162
|
-
self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,5));
|
2163
|
-
self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,4));
|
2164
|
-
self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,3));
|
2165
|
-
self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,0));
|
2166
|
-
self.$t(nil,$v.$a(nil,0,4,true).$aK(nil,-1));
|
2167
|
-
self.$t(nil,$v.$a(nil,-1,-5,false).$R());
|
2168
|
-
self.$t(nil,$v.$a(nil,-5,-1,false).$R());
|
2169
|
-
_i=$v.$a(nil,0,4);
|
2170
|
-
self.$t(nil,_i.$aw());
|
2171
|
-
self.$t(nil,_i.$aL());
|
2172
|
-
self.$t(nil,_i.$av());
|
2173
|
-
self.$t(nil,_i.$aM());
|
2174
|
-
self.$t(nil,_i.$aN());
|
2175
|
-
_i=$v.$a(nil,1,5,true);
|
2176
|
-
self.$t(nil,_i.$aw());
|
2177
|
-
self.$t(nil,_i.$aL());
|
2178
|
-
self.$t(nil,_i.$av());
|
2179
|
-
self.$t(nil,_i.$aM());
|
2180
|
-
self.$t(nil,_i.$aN());
|
2181
|
-
self.$t(nil,false.$D(nil,false));
|
2182
|
-
self.$t(nil,false.$D(nil,true));
|
2183
|
-
self.$t(nil,true.$D(nil,false));
|
2184
|
-
self.$t(nil,true.$D(nil,true));
|
2185
|
-
self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2,false)));
|
2186
|
-
self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2)));
|
2187
|
-
_j=self.$t(nil,$v.$a(nil,0,2,false).$D(nil,$v.$a(nil,0,2,true)));
|
2188
|
-
return _j}
|
2189
|
-
|
2190
|
-
}});$e = a$d({a$j: [],a$e: $k,a$c: "String",a$d: String,a$h: {$L:
|
2191
|
-
/* String#+ */
|
2192
|
-
function(_b,_a){var self;
|
2193
|
-
self=this;
|
2194
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2195
|
-
;
|
2196
|
-
return(self + _a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==64))return _c.a$a;
|
2197
|
-
throw(_c)}}
|
2535
|
+
//
|
2536
|
+
// we use an associate array to store the items. But unlike
|
2537
|
+
// Javascript, the entries are arrays which contain the collisions.
|
2538
|
+
// NOTE that we have to prefix the hash code with a prefix so that
|
2539
|
+
// there are no collisions with methods etc.
|
2540
|
+
// I prefix it for now with ":".
|
2541
|
+
//
|
2542
|
+
var items = {};
|
2543
|
+
var hashed_key, current_key, current_val;
|
2544
|
+
|
2545
|
+
for (var i = 0; i < _a.length; i += 2)
|
2546
|
+
{
|
2547
|
+
current_key = _a[i];
|
2548
|
+
current_val = _a[i+1];
|
2549
|
+
hashed_key = ":" + current_key.$B();
|
2198
2550
|
|
2199
|
-
|
2200
|
-
|
2201
|
-
|
2551
|
+
// make sure that a bucket exists
|
2552
|
+
if (!items[hashed_key]) items[hashed_key] = [];
|
2553
|
+
|
2554
|
+
items[hashed_key].push(current_key, current_val);
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
_c.a$k = items;
|
2558
|
+
_c.a$l = nil;
|
2559
|
+
return _c;
|
2560
|
+
}
|
2561
|
+
|
2562
|
+
,$a8:
|
2563
|
+
/* Hash.new_from_jsobject */
|
2564
|
+
function(_d,_a){var self,_b,_c;
|
2565
|
+
_c=nil;
|
2202
2566
|
self=this;
|
2203
|
-
try{if(arguments.length!=
|
2567
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2204
2568
|
;
|
2205
|
-
self
|
2206
|
-
|
2569
|
+
_c=_b=self.$a();
|
2570
|
+
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==87))return _e.a$a;
|
2571
|
+
throw(_e)}}
|
2207
2572
|
|
2208
|
-
|
2209
|
-
/*
|
2573
|
+
},a$c: "Hash",a$h: {$X:
|
2574
|
+
/* Hash#[] */
|
2210
2575
|
function(_b,_a){var self;
|
2211
2576
|
self=this;
|
2212
2577
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2213
2578
|
;
|
2214
2579
|
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
2225
|
-
if(_b==null)_b=" ";
|
2226
|
-
;
|
2227
|
-
if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")};
|
2228
|
-
_d=_a.$ag(nil,self.$0());
|
2229
|
-
if((_c=_d.$ad(nil,0),_c!==false&&_c!==nil)){return self};
|
2230
|
-
_e="";
|
2231
|
-
while(_e.length < _d) _e += _b;;
|
2232
|
-
return _e.$V(nil,0,_d).$L(nil,self)}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==65))return _g.a$a;
|
2233
|
-
throw(_g)}}
|
2580
|
+
if (!self.a$k)
|
2581
|
+
{
|
2582
|
+
// this is a Javascript Object, not a RubyJS Hash object.
|
2583
|
+
// we directly look the key up. it's fast but not Ruby-like,
|
2584
|
+
// so be careful!
|
2585
|
+
|
2586
|
+
var elem = self[_a];
|
2587
|
+
return (elem == null ? nil : elem);
|
2588
|
+
}
|
2234
2589
|
|
2235
|
-
|
2236
|
-
|
2237
|
-
function(){var self;
|
2238
|
-
self=this;
|
2239
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2240
|
-
;
|
2241
|
-
return self.length}
|
2590
|
+
var hashed_key = ":" + _a.$B();
|
2591
|
+
var bucket = self.a$k[hashed_key];
|
2242
2592
|
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
2249
|
-
if(_b==null)_b=nil;
|
2250
|
-
;
|
2251
|
-
if((_c=_b.$q(),_c!==false&&_c!==nil)){return self.charAt(_a) || nil}else{if((_c=_b.$5(nil,0),_c!==false&&_c!==nil)){return nil};
|
2252
|
-
return self.substring(_a, _a+_b)}}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==68))return _e.a$a;
|
2253
|
-
throw(_e)}}
|
2593
|
+
if (bucket)
|
2594
|
+
{
|
2595
|
+
//
|
2596
|
+
// find the matching element inside the bucket
|
2597
|
+
//
|
2254
2598
|
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
if(_b==null)_b=" ";
|
2262
|
-
;
|
2263
|
-
if((_c=_b.$l(),_c!==false&&_c!==nil)){self.$j(nil,$a,"zero width padding")};
|
2264
|
-
_d=_a.$ag(nil,self.$0());
|
2265
|
-
if((_c=_d.$ad(nil,0),_c!==false&&_c!==nil)){return self};
|
2266
|
-
_e="";
|
2267
|
-
while(_e.length < _d) _e += _b;;
|
2268
|
-
return self.$L(nil,_e.$V(nil,0,_d))}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==67))return _g.a$a;
|
2269
|
-
throw(_g)}}
|
2599
|
+
for (var i = 0; i < bucket.length; i += 2)
|
2600
|
+
{
|
2601
|
+
if (bucket[i].$g(nil,_a))
|
2602
|
+
return bucket[i+1];
|
2603
|
+
}
|
2604
|
+
}
|
2270
2605
|
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
self=this;
|
2275
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2276
|
-
;
|
2277
|
-
return self.split(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==69))return _c.a$a;
|
2606
|
+
// no matching key found -> return default value
|
2607
|
+
return self.a$l;
|
2608
|
+
}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==84))return _c.a$a;
|
2278
2609
|
throw(_c)}}
|
2279
2610
|
|
2280
|
-
,$
|
2281
|
-
/*
|
2282
|
-
function(){var self,
|
2283
|
-
|
2611
|
+
,$a5:
|
2612
|
+
/* Hash#keys */
|
2613
|
+
function(){var self,_b,_f;
|
2614
|
+
_b=_f=nil;
|
2284
2615
|
self=this;
|
2285
2616
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2286
2617
|
;
|
2287
|
-
|
2288
|
-
|
2618
|
+
_f=self.$M(function(_a){var _c,_d;
|
2619
|
+
var _e=nil;
|
2620
|
+
(_b=a$l(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b);
|
2621
|
+
_e=_c;
|
2622
|
+
return _e});
|
2623
|
+
return _f}
|
2289
2624
|
|
2290
|
-
,$
|
2291
|
-
/*
|
2292
|
-
function(){var self;
|
2625
|
+
,$o:
|
2626
|
+
/* Hash#to_s */
|
2627
|
+
function(){var self,_a,_c,_g;
|
2628
|
+
_c=_g=nil;
|
2293
2629
|
self=this;
|
2294
2630
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2295
2631
|
;
|
2296
|
-
|
2632
|
+
_a=[];
|
2633
|
+
self.$v(function(_b){var _d,_e;
|
2634
|
+
var _f=nil;
|
2635
|
+
(_c=a$l(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c);
|
2636
|
+
_a.$J(nil,_d);
|
2637
|
+
_f=_a.$J(nil,_e);
|
2638
|
+
return _f});
|
2639
|
+
_g=_a.$a6(nil,"");
|
2640
|
+
return _g}
|
2297
2641
|
|
2298
|
-
,$
|
2299
|
-
/*
|
2300
|
-
function(){var self;
|
2642
|
+
,$al:
|
2643
|
+
/* Hash#[]= */
|
2644
|
+
function(_c,_a,_b){var self;
|
2301
2645
|
self=this;
|
2302
|
-
if(arguments.length
|
2646
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
2303
2647
|
;
|
2304
|
-
return self.replace(/^\s+/, '').replace(/\s+$/, '')}
|
2305
2648
|
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2649
|
+
if (!self.a$k)
|
2650
|
+
{
|
2651
|
+
// this is a Javascript Object, not a RubyJS Hash object.
|
2652
|
+
// we directly look the key up. it's fast but not Ruby-like,
|
2653
|
+
// so be careful!
|
2654
|
+
|
2655
|
+
self[_a] = _b;
|
2656
|
+
return _b;
|
2657
|
+
}
|
2313
2658
|
|
2314
|
-
|
2315
|
-
|
2316
|
-
function(_g,_a,_b){var self,_c,_d,_e,_f;
|
2317
|
-
self=this;
|
2318
|
-
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2319
|
-
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
2320
|
-
if(_b==null)_b=nil;
|
2321
|
-
;
|
2322
|
-
(_c=["",self,nil],_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_f=_c[2]==null?nil:_c[2],_c);
|
2323
|
-
while(_e.length > 0) {
|
2324
|
-
if (_f = _e.match(_a)) {
|
2325
|
-
_d += _e.slice(0, _f.index);;
|
2326
|
-
if((_c=_b,_c!==false&&_c!==nil)){_d=_d.$L(nil,_b)}else{_d=_d.$L(nil,_g(_f.$aw()).$o())};
|
2327
|
-
_e = _e.slice(_f.index + _f[0].length);
|
2328
|
-
} else {
|
2329
|
-
_d += _e; _e = '';
|
2330
|
-
}
|
2331
|
-
} return _d}catch(_h){if(_h instanceof a$c && (!_h.a$b || _h.a$b==71))return _h.a$a;
|
2332
|
-
throw(_h)}}
|
2333
|
-
|
2334
|
-
,$aE:
|
2335
|
-
/* String#index */
|
2336
|
-
function(_c,_a,_b){var self;
|
2337
|
-
self=this;
|
2338
|
-
try{if(arguments.length<2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2339
|
-
if(arguments.length>3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
2340
|
-
if(_b==null)_b=0;
|
2341
|
-
;
|
2342
|
-
|
2343
|
-
var i = self.indexOf(_a, _b);
|
2344
|
-
return (i == -1) ? nil : i}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==70))return _d.a$a;
|
2345
|
-
throw(_d)}}
|
2346
|
-
|
2347
|
-
,$i:
|
2348
|
-
/* String#inspect */
|
2349
|
-
function(){var self,_a,_b;
|
2350
|
-
self=this;
|
2351
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2352
|
-
;
|
2353
|
-
_a={
|
2354
|
-
'\b': '\\b',
|
2355
|
-
'\t': '\\t',
|
2356
|
-
'\n': '\\n',
|
2357
|
-
'\f': '\\f',
|
2358
|
-
'\r': '\\r',
|
2359
|
-
'\\': '\\\\'
|
2360
|
-
};;
|
2361
|
-
_b=self.$aJ(function(_c){var _d,_e;
|
2362
|
-
_d=_c==null?nil:_c;
|
2363
|
-
_e=_a[_d];
|
2364
|
-
return _e ? _e :
|
2365
|
-
'\\u00' + ("0" + _d.charCodeAt().toString(16)).substring(0,2);},/[\x00-\x1f\\]/);
|
2366
|
-
return ('"' + _b.replace(/"/g, '\\"') + '"');}
|
2367
|
-
|
2368
|
-
}});$L = a$d({a$j: [],a$e: $k,a$f: {$G:
|
2369
|
-
/* T_TestHash::TestHash.main */
|
2370
|
-
function(){var self,_a;
|
2371
|
-
_a=nil;
|
2372
|
-
self=this;
|
2373
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2374
|
-
;
|
2375
|
-
_a=self.$a().$K();
|
2376
|
-
return _a}
|
2377
|
-
|
2378
|
-
},a$c: "T_TestHash::TestHash",a$h: {$B:
|
2379
|
-
/* T_TestHash::TestHash#hash */
|
2380
|
-
function(){var self;
|
2381
|
-
self=this;
|
2382
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2383
|
-
;
|
2384
|
-
var el = {}; el["1"] = null; return el}
|
2659
|
+
var hashed_key = ":" + _a.$B();
|
2660
|
+
var bucket = self.a$k[hashed_key];
|
2385
2661
|
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2392
|
-
;
|
2393
|
-
_a=$y.$Z(nil,"a",6,"b",7,"1",1,1,2,"1,2","hello",[1,2],"good");
|
2394
|
-
self.$t(nil,_a.$V(nil,"a"));
|
2395
|
-
self.$t(nil,_a.$V(nil,"b"));
|
2396
|
-
self.$t(nil,_a.$V(nil,"1"));
|
2397
|
-
self.$t(nil,_a.$V(nil,1));
|
2398
|
-
self.$t(nil,_a.$V(nil,"1,2"));
|
2399
|
-
self.$t(nil,_a.$V(nil,[1,2]));
|
2400
|
-
self.$u(nil,"test native JS hash");
|
2401
|
-
_c=_b=self.$B();
|
2402
|
-
return _c}
|
2662
|
+
if (bucket)
|
2663
|
+
{
|
2664
|
+
//
|
2665
|
+
// find the matching element inside the bucket
|
2666
|
+
//
|
2403
2667
|
|
2404
|
-
|
2405
|
-
/* Proc.new */
|
2406
|
-
function(_a){var self,_b,_c;
|
2407
|
-
self=this;
|
2408
|
-
_b=_a==null?nil:_a;
|
2409
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2410
|
-
;
|
2411
|
-
if((_c=_b,_c===false||_c===nil)){self.$j(nil,$a,"tried to create Proc object without a block")};
|
2412
|
-
return (function() {
|
2413
|
-
try {
|
2414
|
-
return _b.$O.apply(_b, arguments);
|
2415
|
-
} catch(e)
|
2668
|
+
for (var i = 0; i < bucket.length; i += 2)
|
2416
2669
|
{
|
2417
|
-
if (
|
2670
|
+
if (bucket[i].$g(nil,_a))
|
2418
2671
|
{
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
}
|
2423
|
-
return e.a$a;
|
2672
|
+
// overwrite value
|
2673
|
+
bucket[i+1] = _b;
|
2674
|
+
return _b;
|
2424
2675
|
}
|
2425
|
-
else throw(e);
|
2426
2676
|
}
|
2427
|
-
|
2677
|
+
// key not found in this bucket. append key, value pair to bucket
|
2678
|
+
bucket.push(_a, _b);
|
2679
|
+
}
|
2680
|
+
else
|
2681
|
+
{
|
2682
|
+
//
|
2683
|
+
// create new bucket
|
2684
|
+
//
|
2685
|
+
self.a$k[hashed_key] = [_a, _b];
|
2686
|
+
}
|
2687
|
+
return _b;
|
2688
|
+
}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==86))return _d.a$a;
|
2428
2689
|
throw(_d)}}
|
2429
2690
|
|
2430
|
-
|
2431
|
-
/*
|
2432
|
-
function(){var self
|
2433
|
-
self=this;
|
2434
|
-
_a=[];
|
2435
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
2436
|
-
;
|
2437
|
-
|
2438
|
-
// TODO: use switch/case
|
2439
|
-
if (_a.length == 0) return self();
|
2440
|
-
else if (_a.length == 1) return self(_a[0]);
|
2441
|
-
else return self(_a);}
|
2442
|
-
|
2443
|
-
}});$ae = a$d({a$j: [],a$e: $9,a$c: "Bignum",a$d: Number});$ad = a$d({a$j: [],a$e: $n,a$c: "LocalJumpError"});$M = a$d({a$j: [],a$e: $k,a$f: {$G:
|
2444
|
-
/* T_TestYield::TestYield.main */
|
2445
|
-
function(){var self,_a;
|
2446
|
-
_a=nil;
|
2447
|
-
self=this;
|
2448
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2449
|
-
;
|
2450
|
-
_a=self.$a().$K();
|
2451
|
-
return _a}
|
2452
|
-
|
2453
|
-
},a$c: "T_TestYield::TestYield",a$h: {$aT:
|
2454
|
-
/* T_TestYield::TestYield#test_loop2 */
|
2455
|
-
function(){var self,_a,_b,_d,_f;
|
2456
|
-
_f=nil;
|
2457
|
-
self=this;
|
2458
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2459
|
-
;
|
2460
|
-
self.$u(nil,"loop2");
|
2461
|
-
_a=0;
|
2462
|
-
_b=self.$aU(function(){var _e=nil;
|
2463
|
-
;
|
2464
|
-
_a=_a.$L(nil,1);
|
2465
|
-
if((_d=_a.$1(nil,2).$D(nil,1),_d!==false&&_d!==nil)){return nil};
|
2466
|
-
self.$t(nil,_a);
|
2467
|
-
if((_d=_a.$ao(nil,8),_d!==false&&_d!==nil)){throw(new a$c(["out",_a],null))}else{_e=nil};
|
2468
|
-
return _e});
|
2469
|
-
self.$t(nil,_b);
|
2470
|
-
_f=self.$u(nil,"--");
|
2471
|
-
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==74))return _g.a$a;
|
2472
|
-
throw(_g)}}
|
2473
|
-
|
2474
|
-
,$aS:
|
2475
|
-
/* T_TestYield::TestYield#three_times_block */
|
2476
|
-
function(_a){var self,_b,_c;
|
2477
|
-
_c=nil;
|
2691
|
+
,$v:
|
2692
|
+
/* Hash#each */
|
2693
|
+
function(_a){var self;
|
2478
2694
|
self=this;
|
2479
|
-
_b=_a==null?nil:_a;
|
2480
2695
|
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2481
2696
|
;
|
2482
|
-
_b.$O(nil,1);
|
2483
|
-
_b.$O(nil,2);
|
2484
|
-
_c=_b.$O(nil,3);
|
2485
|
-
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==73))return _d.a$a;
|
2486
|
-
throw(_d)}}
|
2487
2697
|
|
2488
|
-
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
self
|
2497
|
-
|
2498
|
-
_c=self.$t(nil,"return_in_block after");
|
2499
|
-
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==75))return _d.a$a;
|
2500
|
-
throw(_d)}}
|
2698
|
+
if (!self.a$k)
|
2699
|
+
{
|
2700
|
+
// this is a Javascript Object, not a RubyJS Hash object.
|
2701
|
+
// we directly look the key up. it's fast but not Ruby-like,
|
2702
|
+
// so be careful!
|
2703
|
+
var key, value;
|
2704
|
+
for (key in self)
|
2705
|
+
{
|
2706
|
+
value = self[key];;
|
2707
|
+
_a([(key == null ? nil : key),(value == null ? nil : value)]);
|
2501
2708
|
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
self=this;
|
2507
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2508
|
-
;
|
2509
|
-
self.$u(nil,"while-loop");
|
2510
|
-
_a=0;
|
2511
|
-
while(true){_a=_a.$L(nil,1);
|
2512
|
-
if((_b=_a.$1(nil,2).$D(nil,1),_b!==false&&_b!==nil)){continue};
|
2513
|
-
self.$t(nil,_a);
|
2514
|
-
if((_b=_a.$ao(nil,8),_b!==false&&_b!==nil)){break}};
|
2515
|
-
self.$u(nil,"----");
|
2516
|
-
while((_b=_a.$ao(nil,0),_b!==false&&_b!==nil)){self.$t(nil,_a);
|
2517
|
-
_a=_a.$ag(nil,1)};
|
2518
|
-
_c=self.$u(nil,"--");
|
2519
|
-
return _c}
|
2709
|
+
}
|
2710
|
+
|
2711
|
+
return nil;
|
2712
|
+
}
|
2520
2713
|
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
;
|
2529
|
-
|
2530
|
-
_c=self.$t(nil,"not reached");
|
2531
|
-
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==77))return _d.a$a;
|
2532
|
-
throw(_d)}}
|
2714
|
+
var key, bucket, i;
|
2715
|
+
for (key in self.a$k)
|
2716
|
+
{
|
2717
|
+
if (key.charAt(0) == ":")
|
2718
|
+
{
|
2719
|
+
bucket = self.a$k[key];
|
2720
|
+
for (i=0; i<bucket.length; i+=2)
|
2721
|
+
{;
|
2722
|
+
_a([bucket[i],bucket[i+1]]);
|
2533
2723
|
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
;
|
2541
|
-
self.$t(nil,"test_proc");
|
2542
|
-
_a=self.$s(function(){;
|
2543
|
-
throw(new a$c(0,76))});
|
2544
|
-
self.$t(nil,_a.$O());
|
2545
|
-
_a=$h.$a(function(){;
|
2546
|
-
throw(new a$c(3,null))});
|
2547
|
-
_d=self.$t(nil,_a.$O());
|
2548
|
-
return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==76))return _e.a$a;
|
2549
|
-
throw(_e)}}
|
2724
|
+
}
|
2725
|
+
}
|
2726
|
+
}
|
2727
|
+
return nil;
|
2728
|
+
}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==85))return _b.a$a;
|
2729
|
+
throw(_b)}}
|
2550
2730
|
|
2551
|
-
,$
|
2552
|
-
/*
|
2553
|
-
function(){var self
|
2554
|
-
_d=nil;
|
2731
|
+
,$c:
|
2732
|
+
/* Hash#initialize */
|
2733
|
+
function(){var self;
|
2555
2734
|
self=this;
|
2556
2735
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2557
2736
|
;
|
2558
|
-
self.$u(nil,"three_times_indirect");
|
2559
|
-
self.$aY(function(_a){var _b;
|
2560
|
-
var _c=nil;
|
2561
|
-
_b=_a==null?nil:_a;
|
2562
|
-
_c=self.$t(nil,_b);
|
2563
|
-
return _c});
|
2564
|
-
_d=self.$u(nil,"--");
|
2565
|
-
return _d}
|
2566
2737
|
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2570
|
-
_e=nil;
|
2571
|
-
self=this;
|
2572
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2573
|
-
;
|
2574
|
-
self.$u(nil,"three_times_yield2");
|
2575
|
-
_e=self.$a1(function(_a){var _b;
|
2576
|
-
var _c=nil;
|
2577
|
-
_b=_a==null?nil:_a;
|
2578
|
-
if((_d=_b.$D(nil,1),_d!==false&&_d!==nil)){_c=_b}else{return _b.$L(nil,1)};
|
2579
|
-
return _c});
|
2580
|
-
return _e}
|
2738
|
+
self.a$k = {};
|
2739
|
+
self.a$l = nil;
|
2740
|
+
return nil}
|
2581
2741
|
|
2582
|
-
,$
|
2583
|
-
/*
|
2584
|
-
function(){var self,
|
2585
|
-
_f=nil;
|
2742
|
+
,$a7:
|
2743
|
+
/* Hash#values */
|
2744
|
+
function(){var self,_b,_f;
|
2745
|
+
_b=_f=nil;
|
2586
2746
|
self=this;
|
2587
|
-
|
2588
|
-
;
|
2589
|
-
self.$u(nil,"loop");
|
2590
|
-
_a=0;
|
2591
|
-
_b=self.$x(function(){var _e=nil;
|
2747
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2592
2748
|
;
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2749
|
+
_f=self.$M(function(_a){var _c,_d;
|
2750
|
+
var _e=nil;
|
2751
|
+
(_b=a$l(_a),_c=_b[0]==null?nil:_b[0],_d=_b[1]==null?nil:_b[1],_b);
|
2752
|
+
_e=_d;
|
2597
2753
|
return _e});
|
2598
|
-
|
2599
|
-
_f=self.$u(nil,"--");
|
2600
|
-
return _f}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==78))return _g.a$a;
|
2601
|
-
throw(_g)}}
|
2754
|
+
return _f}
|
2602
2755
|
|
2603
|
-
,$
|
2604
|
-
/*
|
2605
|
-
function(){var self,
|
2606
|
-
|
2756
|
+
,$i:
|
2757
|
+
/* Hash#inspect */
|
2758
|
+
function(){var self,_a,_c,_g;
|
2759
|
+
_c=_g=nil;
|
2607
2760
|
self=this;
|
2608
2761
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2609
2762
|
;
|
2610
|
-
|
2611
|
-
self.$
|
2612
|
-
var
|
2613
|
-
_b=
|
2614
|
-
|
2615
|
-
return
|
2616
|
-
|
2617
|
-
|
2763
|
+
_a="{";
|
2764
|
+
_a=_a.$R(nil,self.$M(function(_b){var _d,_e;
|
2765
|
+
var _f=nil;
|
2766
|
+
(_c=a$l(_b),_d=_c[0]==null?nil:_c[0],_e=_c[1]==null?nil:_c[1],_c);
|
2767
|
+
_f=_d.$i().$R(nil,"=>").$R(nil,_e.$i());
|
2768
|
+
return _f}).$a6(nil,", "));
|
2769
|
+
_a=_a.$R(nil,"}");
|
2770
|
+
_g=_a;
|
2771
|
+
return _g}
|
2618
2772
|
|
2619
|
-
|
2620
|
-
/*
|
2621
|
-
function(){var self,
|
2622
|
-
|
2773
|
+
}});$ap = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Bar_"});$aq = a$d({a$j: [],a$e: nil,a$c: "T_TestMassign"});$ar = a$d({a$j: [],a$e: $p,a$c: "T_TestHotRuby::Bar2",a$h: {$aM:
|
2774
|
+
/* T_TestHotRuby::Bar2#run */
|
2775
|
+
function(){var self,_a;
|
2776
|
+
_a=nil;
|
2623
2777
|
self=this;
|
2624
2778
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2625
2779
|
;
|
2626
|
-
self.$
|
2627
|
-
|
2628
|
-
self.$aX();
|
2629
|
-
self.$a0();
|
2630
|
-
self.$a3();
|
2631
|
-
self.$aT();
|
2632
|
-
self.$aV();
|
2633
|
-
try{self.$aZ()}catch(_a){if(_a instanceof a$c)throw(_a);
|
2634
|
-
if((_c=$ad.$f(nil,_a),_c!==false&&_c!==nil)){_b=_a;
|
2635
|
-
self.$t(nil,_b)}else{throw(_a)}};
|
2636
|
-
_d=self.$t(nil,self.$a5());
|
2637
|
-
return _d}
|
2638
|
-
|
2639
|
-
,$x:
|
2640
|
-
/* T_TestYield::TestYield#loop */
|
2641
|
-
function(_a){var self,_b;
|
2642
|
-
_b=nil;
|
2643
|
-
self=this;
|
2644
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2645
|
-
;
|
2646
|
-
while(true){_a()};
|
2647
|
-
_b=self.$t(nil,"not reached");
|
2648
|
-
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==81))return _c.a$a;
|
2649
|
-
throw(_c)}}
|
2650
|
-
|
2651
|
-
,$aY:
|
2652
|
-
/* T_TestYield::TestYield#three_times_indirect */
|
2653
|
-
function(_a){var self,_b,_c;
|
2654
|
-
_c=nil;
|
2655
|
-
self=this;
|
2656
|
-
_b=_a==null?nil:_a;
|
2657
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2658
|
-
;
|
2659
|
-
self.$a6(_b);
|
2660
|
-
_c=self.$aS(_b);
|
2661
|
-
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==80))return _d.a$a;
|
2662
|
-
throw(_d)}}
|
2663
|
-
|
2664
|
-
,$a6:
|
2665
|
-
/* T_TestYield::TestYield#three_times_yield */
|
2666
|
-
function(_a){var self,_b;
|
2667
|
-
_b=nil;
|
2668
|
-
self=this;
|
2669
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2670
|
-
;
|
2671
|
-
_a(1);
|
2672
|
-
_a(2);
|
2673
|
-
_b=_a(3);
|
2674
|
-
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==79))return _c.a$a;
|
2675
|
-
throw(_c)}}
|
2676
|
-
|
2677
|
-
,$a1:
|
2678
|
-
/* T_TestYield::TestYield#three_times_yield2 */
|
2679
|
-
function(_a){var self,_b;
|
2680
|
-
_b=nil;
|
2681
|
-
self=this;
|
2682
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2683
|
-
;
|
2684
|
-
self.$t(nil,_a(1));
|
2685
|
-
self.$t(nil,_a(2));
|
2686
|
-
_b=self.$t(nil,_a(3));
|
2687
|
-
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==82))return _c.a$a;
|
2688
|
-
throw(_c)}}
|
2689
|
-
|
2690
|
-
,$a5:
|
2691
|
-
/* T_TestYield::TestYield#test_return_in_block */
|
2692
|
-
function(){var self,_b;
|
2693
|
-
_b=nil;
|
2694
|
-
self=this;
|
2695
|
-
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2696
|
-
;
|
2697
|
-
self.$t(nil,"before");
|
2698
|
-
self.$aW(function(){;
|
2699
|
-
throw(new a$c(4,83))});
|
2700
|
-
_b=self.$t(nil,"after (NOT)");
|
2701
|
-
return _b}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==83))return _c.a$a;
|
2702
|
-
throw(_c)}}
|
2780
|
+
_a=self.$u(nil,"Foo");
|
2781
|
+
return _a}
|
2703
2782
|
|
2704
|
-
|
2705
|
-
/*
|
2706
|
-
function(){var self,
|
2707
|
-
|
2783
|
+
}});$ag = a$d({a$j: [],a$e: $aa,a$c: "T_TestClass::C"});$as = a$d({a$j: [],a$e: $k,a$c: "T_TestHotRuby::Foo3"});$at = a$d({a$j: [],a$e: $as,a$c: "T_TestHotRuby::Bar3",a$h: {$aM:
|
2784
|
+
/* T_TestHotRuby::Bar3#run */
|
2785
|
+
function(){var self,_a;
|
2786
|
+
_a=nil;
|
2708
2787
|
self=this;
|
2709
2788
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2710
2789
|
;
|
2711
|
-
self.$u(nil,"
|
2712
|
-
self.$
|
2713
|
-
|
2714
|
-
|
2715
|
-
_c=self.$t(nil,_b);
|
2716
|
-
return _c});
|
2717
|
-
_d=self.$u(nil,"--");
|
2718
|
-
return _d}
|
2790
|
+
self.$u(nil,"Foo");
|
2791
|
+
self.$u(nil,"Foo");
|
2792
|
+
_a=self.$u(nil,"Foo");
|
2793
|
+
return _a}
|
2719
2794
|
|
2720
|
-
}});$
|
2795
|
+
}});$au = a$d({a$j: [],a$e: nil,a$c: "T_TestSend"});$av = a$d({a$j: [],a$e: nil,a$c: "T_TestInspect"});$D = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2721
2796
|
/* T_TestExpr::TestExpr.main */
|
2722
2797
|
function(){var self,_a;
|
2723
2798
|
_a=nil;
|
2724
2799
|
self=this;
|
2725
2800
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2726
2801
|
;
|
2727
|
-
_a=self.$a().$
|
2802
|
+
_a=self.$a().$G();
|
2728
2803
|
return _a}
|
2729
2804
|
|
2730
|
-
},a$c: "T_TestExpr::TestExpr",a$h: {$
|
2805
|
+
},a$c: "T_TestExpr::TestExpr",a$h: {$G:
|
2731
2806
|
/* T_TestExpr::TestExpr#test */
|
2732
2807
|
function(){var self,_a,_b,_c;
|
2733
2808
|
_c=nil;
|
@@ -2738,37 +2813,16 @@ _a=(true?1:2);
|
|
2738
2813
|
self.$t(nil,_a);
|
2739
2814
|
(_b=_a=true, (_b!==false&&_b!==nil) ? _b : (a$m(new a$c(nil,null))));
|
2740
2815
|
_c=self.$t(nil,_a);
|
2741
|
-
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==
|
2816
|
+
return _c}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==88))return _d.a$a;
|
2742
2817
|
throw(_d)}}
|
2743
2818
|
|
2744
|
-
}});$
|
2745
|
-
/* T_TestInspect::TestInspect.main */
|
2746
|
-
function(){var self,_a;
|
2747
|
-
_a=nil;
|
2748
|
-
self=this;
|
2749
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2750
|
-
;
|
2751
|
-
_a=self.$a().$K();
|
2752
|
-
return _a}
|
2753
|
-
|
2754
|
-
},a$c: "T_TestInspect::TestInspect",a$h: {$K:
|
2755
|
-
/* T_TestInspect::TestInspect#test */
|
2756
|
-
function(){var self,_a,_b;
|
2757
|
-
_b=nil;
|
2758
|
-
self=this;
|
2759
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2760
|
-
;
|
2761
|
-
_a=[$y.$Z(nil,"Hello","Rubyconf")];
|
2762
|
-
_b=self.$u(nil,_a.$i());
|
2763
|
-
return _b}
|
2764
|
-
|
2765
|
-
}});$d = a$d({a$j: [],a$e: $n,a$c: "TypeError"});$Y = a$d({a$j: [],a$e: $k,a$f: {$G:
|
2819
|
+
}});$Q = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2766
2820
|
/* T_TestMassign::TestMassign.main */
|
2767
2821
|
function(){var self,_a,_b,_c,_d,_e,_f;
|
2768
2822
|
_a=_f=nil;
|
2769
2823
|
self=this;
|
2770
|
-
if(self.$
|
2771
|
-
if(self.$
|
2824
|
+
if(self.$a9==null)self.$a9=nil;
|
2825
|
+
if(self.$an==null)self.$an=nil;
|
2772
2826
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2773
2827
|
;
|
2774
2828
|
(_a=[1,2],_b=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],_a);
|
@@ -2785,10 +2839,10 @@ self.$t(nil,_b);
|
|
2785
2839
|
self.$t(nil,_c);
|
2786
2840
|
self.$t(nil,_d);
|
2787
2841
|
self.$u(nil,"--");
|
2788
|
-
(_a=[1,2,3],self.$
|
2789
|
-
self.$t(nil,self.$
|
2842
|
+
(_a=[1,2,3],self.$an=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],self.$a9=_a[2]==null?nil:_a[2],_a);
|
2843
|
+
self.$t(nil,self.$an);
|
2790
2844
|
self.$t(nil,_c);
|
2791
|
-
self.$t(nil,self.$
|
2845
|
+
self.$t(nil,self.$a9);
|
2792
2846
|
self.$u(nil,"--");
|
2793
2847
|
self.$u(nil,"swap");
|
2794
2848
|
(_a=[1,2],_b=_a[0]==null?nil:_a[0],_c=_a[1]==null?nil:_a[1],_a);
|
@@ -2816,386 +2870,535 @@ self.$t(nil,_b);
|
|
2816
2870
|
self.$t(nil,_c);
|
2817
2871
|
self.$u(nil,"--");
|
2818
2872
|
self.$u(nil,"splat with globals");
|
2819
|
-
self.$t(nil,(typeof($
|
2820
|
-
self.$t(nil,(typeof($
|
2821
|
-
(_a=[1,2],$
|
2822
|
-
self.$t(nil,(typeof($
|
2823
|
-
self.$t(nil,(typeof($
|
2873
|
+
self.$t(nil,(typeof($aw)=='undefined'?nil:$aw));
|
2874
|
+
self.$t(nil,(typeof($ax)=='undefined'?nil:$ax));
|
2875
|
+
(_a=[1,2],$aw=_a[0]==null?nil:_a[0],$ax=_a[1]==null?nil:_a[1],_a);
|
2876
|
+
self.$t(nil,(typeof($aw)=='undefined'?nil:$aw));
|
2877
|
+
self.$t(nil,(typeof($ax)=='undefined'?nil:$ax));
|
2824
2878
|
_f=self.$u(nil,"--");
|
2825
2879
|
return _f}
|
2826
2880
|
|
2827
|
-
},a$c: "T_TestMassign::TestMassign"});$
|
2828
|
-
/*
|
2829
|
-
function(
|
2881
|
+
},a$c: "T_TestMassign::TestMassign"});$ay = a$d({a$j: [],a$e: nil,a$c: "T_TestSimpleOutput"});$K = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2882
|
+
/* T_TestInspect::TestInspect.main */
|
2883
|
+
function(){var self,_a;
|
2884
|
+
_a=nil;
|
2885
|
+
self=this;
|
2886
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2887
|
+
;
|
2888
|
+
_a=self.$a().$G();
|
2889
|
+
return _a}
|
2890
|
+
|
2891
|
+
},a$c: "T_TestInspect::TestInspect",a$h: {$G:
|
2892
|
+
/* T_TestInspect::TestInspect#test */
|
2893
|
+
function(){var self,_a,_b;
|
2830
2894
|
_b=nil;
|
2831
2895
|
self=this;
|
2832
|
-
|
2896
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2833
2897
|
;
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2898
|
+
_a=[$ad.$aK(nil,"Hello","Rubyconf")];
|
2899
|
+
_b=self.$u(nil,_a.$i());
|
2900
|
+
return _b}
|
2837
2901
|
|
2838
|
-
}});$
|
2839
|
-
/*
|
2840
|
-
function(
|
2841
|
-
|
2902
|
+
}});$ai = a$d({a$j: [],a$e: $k,a$c: "NilClass",a$d: NilClass,a$h: {$a_:
|
2903
|
+
/* NilClass#to_f */
|
2904
|
+
function(){var self,_a;
|
2905
|
+
_a=nil;
|
2842
2906
|
self=this;
|
2843
|
-
|
2907
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2844
2908
|
;
|
2845
|
-
|
2846
|
-
|
2847
|
-
_d = _a[a$f[_b]];
|
2848
|
-
if (_d==null) _d = nil;;
|
2849
|
-
if((_c=_d,_c!==false&&_c!==nil)){_e=self.$a$=_d}else{_e=self.$j(nil,$o,("undefined method `" + (_b).$o() + ("' for class `").$o() + (_a.$z().$e()).$o() + ("'").$o()))};
|
2850
|
-
return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==86))return _g.a$a;
|
2851
|
-
throw(_g)}}
|
2909
|
+
_a=0.0;
|
2910
|
+
return _a}
|
2852
2911
|
|
2853
|
-
,$
|
2854
|
-
/*
|
2855
|
-
function(
|
2912
|
+
,$q:
|
2913
|
+
/* NilClass#nil? */
|
2914
|
+
function(){var self,_a;
|
2915
|
+
_a=nil;
|
2856
2916
|
self=this;
|
2857
|
-
|
2858
|
-
try{_a=[];
|
2859
|
-
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
2917
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2860
2918
|
;
|
2861
|
-
|
2862
|
-
|
2919
|
+
_a=true;
|
2920
|
+
return _a}
|
2921
|
+
|
2922
|
+
,$o:
|
2923
|
+
/* NilClass#to_s */
|
2924
|
+
function(){var self,_a;
|
2925
|
+
_a=nil;
|
2926
|
+
self=this;
|
2927
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2928
|
+
;
|
2929
|
+
_a="";
|
2930
|
+
return _a}
|
2931
|
+
|
2932
|
+
,$a$:
|
2933
|
+
/* NilClass#to_i */
|
2934
|
+
function(){var self,_a;
|
2935
|
+
_a=nil;
|
2936
|
+
self=this;
|
2937
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2938
|
+
;
|
2939
|
+
_a=0;
|
2940
|
+
return _a}
|
2941
|
+
|
2942
|
+
,$N:
|
2943
|
+
/* NilClass#to_a */
|
2944
|
+
function(){var self,_a;
|
2945
|
+
_a=nil;
|
2946
|
+
self=this;
|
2947
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2948
|
+
;
|
2949
|
+
_a=[];
|
2950
|
+
return _a}
|
2951
|
+
|
2952
|
+
,$ba:
|
2953
|
+
/* NilClass#to_splat */
|
2954
|
+
function(){var self,_a;
|
2955
|
+
_a=nil;
|
2956
|
+
self=this;
|
2957
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2958
|
+
;
|
2959
|
+
_a=[];
|
2960
|
+
return _a}
|
2863
2961
|
|
2864
2962
|
,$i:
|
2865
|
-
/*
|
2963
|
+
/* NilClass#inspect */
|
2866
2964
|
function(){var self,_a;
|
2867
2965
|
_a=nil;
|
2868
2966
|
self=this;
|
2869
|
-
if(self.$a_==null)self.$a_=nil;
|
2870
|
-
if(self.$a9==null)self.$a9=nil;
|
2871
2967
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2872
2968
|
;
|
2873
|
-
_a=
|
2969
|
+
_a="nil";
|
2874
2970
|
return _a}
|
2875
2971
|
|
2876
|
-
}});$
|
2877
|
-
/*
|
2878
|
-
function(
|
2879
|
-
|
2972
|
+
}});$az = a$d({a$j: [],a$e: $k,a$c: "Regexp",a$d: RegExp});$aA = a$d({a$j: [],a$e: nil,a$c: "T_TestHotRuby"});$aB = a$d({a$j: [],a$e: $p,a$c: "T_TestHotRuby::Object::Bar2",a$h: {$aM:
|
2973
|
+
/* T_TestHotRuby::Object::Bar2#run */
|
2974
|
+
function(){var self,_a;
|
2975
|
+
_a=nil;
|
2880
2976
|
self=this;
|
2881
|
-
if(
|
2882
|
-
if(self.$bb==null)self.$bb=nil;
|
2883
|
-
if(self.$bc==null)self.$bc=nil;
|
2884
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2977
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2885
2978
|
;
|
2886
|
-
|
2887
|
-
|
2888
|
-
return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==88))return _f.a$a;
|
2889
|
-
throw(_f)}}
|
2979
|
+
_a=self.$u(nil,"Foo");
|
2980
|
+
return _a}
|
2890
2981
|
|
2891
|
-
|
2892
|
-
/*
|
2982
|
+
}});$R = a$d({a$j: [],a$e: $k,a$f: {$F:
|
2983
|
+
/* T_TestNew::TestNew.main */
|
2893
2984
|
function(){var self,_a;
|
2894
2985
|
_a=nil;
|
2895
2986
|
self=this;
|
2896
|
-
if(self.$ba==null)self.$ba=nil;
|
2897
2987
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2898
2988
|
;
|
2899
|
-
_a=self.$
|
2989
|
+
_a=self.$a().$G();
|
2900
2990
|
return _a}
|
2901
2991
|
|
2902
|
-
|
2903
|
-
/*
|
2904
|
-
function(
|
2905
|
-
|
2992
|
+
},a$c: "T_TestNew::TestNew",a$h: {$c:
|
2993
|
+
/* T_TestNew::TestNew#initialize */
|
2994
|
+
function(){var self,_a;
|
2995
|
+
_a=nil;
|
2996
|
+
self=this;
|
2997
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2998
|
+
;
|
2999
|
+
_a=nil;
|
3000
|
+
return _a}
|
3001
|
+
|
3002
|
+
,$G:
|
3003
|
+
/* T_TestNew::TestNew#test */
|
3004
|
+
function(){var self,_a;
|
3005
|
+
_a=nil;
|
3006
|
+
self=this;
|
3007
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3008
|
+
;
|
3009
|
+
_a=self.$u(nil,"test");
|
3010
|
+
return _a}
|
3011
|
+
|
3012
|
+
}});$aC = a$d({a$j: [],a$e: nil,a$c: "T_TestRegexp"});$O = a$d({a$j: [],a$e: $k,a$f: {$F:
|
3013
|
+
/* T_TestSend::TestSend.main */
|
3014
|
+
function(){var self,_b,_c,_d,_e;
|
3015
|
+
_e=nil;
|
3016
|
+
self=this;
|
3017
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3018
|
+
;
|
3019
|
+
self.$u(nil,"send");
|
3020
|
+
self.$t(nil,$7.$a().$w(nil,"a_method",1,2));
|
3021
|
+
self.$t(nil,$8.$a().$w(nil,"a_method",1,2));
|
3022
|
+
self.$u(nil,"respond_to?");
|
3023
|
+
self.$t(nil,$7.$a().$r(nil,"a_method"));
|
3024
|
+
self.$t(nil,$7.$a().$r(nil,"to_s"));
|
3025
|
+
self.$t(nil,$7.$a().$r(nil,"inspect"));
|
3026
|
+
self.$t(nil,$7.$a().$r(nil,"b_method"));
|
3027
|
+
self.$t(nil,$7.$a().$r(nil,"c_method"));
|
3028
|
+
self.$u(nil,"method_missing");
|
3029
|
+
self.$t(nil,$X.$a().$r(nil,"blah_blah"));
|
3030
|
+
$X.$a().$bb(nil,1,2,3);
|
3031
|
+
try{$7.$a().$bb();
|
3032
|
+
self.$u(nil,"FAILURE?")}catch(_a){if(_a instanceof a$c)throw(_a);
|
3033
|
+
if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"catched!!!")}else{throw(_a)}};
|
3034
|
+
try{$7.$bc()}catch(_a){if(_a instanceof a$c)throw(_a);
|
3035
|
+
if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$t(nil,"goood")}else{throw(_a)}};
|
3036
|
+
self.$u(nil,"class Method");
|
3037
|
+
_c="hallo".$C(nil,"to_s");
|
3038
|
+
self.$t(nil,_c);
|
3039
|
+
self.$t(nil,_c.$K());
|
3040
|
+
_d=[1,2,3];
|
3041
|
+
_c=_d.$C(nil,"+");
|
3042
|
+
self.$t(nil,_c);
|
3043
|
+
self.$t(nil,_c.$K(nil,[2,3]));
|
3044
|
+
self.$t(nil,_c);
|
3045
|
+
_e=self.$t(nil,_d);
|
3046
|
+
return _e}
|
3047
|
+
|
3048
|
+
},a$c: "T_TestSend::TestSend"});$B = a$d({a$j: [],a$e: $k,a$f: {$F:
|
3049
|
+
/* T_TestInsertionSort::TestInsertionSort.main */
|
3050
|
+
function(){var self,_a;
|
3051
|
+
_a=nil;
|
3052
|
+
self=this;
|
3053
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3054
|
+
;
|
3055
|
+
_a=self.$a().$ak(nil,[3,6,2,5,3,7,1,8]);
|
3056
|
+
return _a}
|
3057
|
+
|
3058
|
+
},a$c: "T_TestInsertionSort::TestInsertionSort",a$h: {$ak:
|
3059
|
+
/* T_TestInsertionSort::TestInsertionSort#sort */
|
3060
|
+
function(_j,_a){var self,_c,_d,_e,_f,_g,_i;
|
3061
|
+
_i=nil;
|
3062
|
+
self=this;
|
3063
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3064
|
+
;
|
3065
|
+
self.$u(nil,"Before insertion sort:");
|
3066
|
+
self.$t(nil,_a);
|
3067
|
+
$v.$a(nil,1,_a.$V().$U(nil,1),false).$v(function(_b){var _h=nil;
|
3068
|
+
_c=_b==null?nil:_b;
|
3069
|
+
_d=_c;
|
3070
|
+
while((_e=(_f=_d.$7(nil,1), (_f!==false&&_f!==nil) ? (_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1)))) : _f),_e!==false&&_e!==nil)){if((_e=_a.$X(nil,_d).$Z(nil,_a.$X(nil,_d.$U(nil,1))),_e!==false&&_e!==nil)){_g=_a.$X(nil,_d);
|
3071
|
+
_a.$al(nil,_d,_a.$X(nil,_d.$U(nil,1)));
|
3072
|
+
_a.$al(nil,_d.$U(nil,1),_g)};
|
3073
|
+
_d=_d.$U(nil,1)};
|
3074
|
+
_h=nil;
|
3075
|
+
;
|
3076
|
+
return _h});
|
3077
|
+
self.$u(nil,"After insertion sort:");
|
3078
|
+
_i=self.$t(nil,_a);
|
3079
|
+
return _i}catch(_k){if(_k instanceof a$c && (!_k.a$b || _k.a$b==89))return _k.a$a;
|
3080
|
+
throw(_k)}}
|
3081
|
+
|
3082
|
+
}});$aD = a$d({a$j: [],a$e: nil,a$c: "T_TestException"});$aE = a$d({a$j: [],a$e: nil,a$c: "T_TestRange"});$1 = a$d({a$j: [$r],a$e: $k,a$f: {$a:
|
3083
|
+
/* Array.new */
|
3084
|
+
function(){var self;
|
3085
|
+
self=this;
|
3086
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3087
|
+
;
|
3088
|
+
return []}
|
3089
|
+
|
3090
|
+
},a$c: "Array",a$d: Array,a$h: {$R:
|
3091
|
+
/* Array#+ */
|
3092
|
+
function(_b,_a){var self;
|
3093
|
+
self=this;
|
3094
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3095
|
+
;
|
3096
|
+
return self.concat(_a)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==92))return _c.a$a;
|
3097
|
+
throw(_c)}}
|
3098
|
+
|
3099
|
+
,$J:
|
3100
|
+
/* Array#<< */
|
3101
|
+
function(_b,_a){var self;
|
3102
|
+
self=this;
|
3103
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3104
|
+
;
|
3105
|
+
self.push(_a); return self}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==91))return _c.a$a;
|
3106
|
+
throw(_c)}}
|
3107
|
+
|
3108
|
+
,$aN:
|
3109
|
+
/* Array#delete */
|
3110
|
+
function(_b,_a){var self;
|
3111
|
+
self=this;
|
3112
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3113
|
+
;
|
3114
|
+
|
3115
|
+
var del = false;
|
3116
|
+
for (var i=0; i < self.length; i++)
|
3117
|
+
{
|
3118
|
+
if (_a.$g(nil, self[i]))
|
3119
|
+
{
|
3120
|
+
self.splice(i,1);
|
3121
|
+
del = true;
|
3122
|
+
// stay at the current index unless we are at the last element!
|
3123
|
+
if (i < self.length-1) --i;
|
3124
|
+
}
|
3125
|
+
}
|
3126
|
+
return del ? _a : nil}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==90))return _c.a$a;
|
3127
|
+
throw(_c)}}
|
3128
|
+
|
3129
|
+
,$S:
|
3130
|
+
/* Array#size */
|
3131
|
+
function(){var self;
|
3132
|
+
self=this;
|
3133
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3134
|
+
;
|
3135
|
+
return self.length}
|
3136
|
+
|
3137
|
+
,$X:
|
3138
|
+
/* Array#[] */
|
3139
|
+
function(_b,_a){var self;
|
3140
|
+
self=this;
|
3141
|
+
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3142
|
+
;
|
3143
|
+
var v = self[_a]; return (v == null ? nil : v)}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==94))return _c.a$a;
|
3144
|
+
throw(_c)}}
|
3145
|
+
|
3146
|
+
,$be:
|
3147
|
+
/* Array#clear */
|
3148
|
+
function(){var self;
|
3149
|
+
self=this;
|
3150
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3151
|
+
;
|
3152
|
+
self.length=0; return self}
|
3153
|
+
|
3154
|
+
,$g:
|
3155
|
+
/* Array#eql? */
|
3156
|
+
function(_b,_a){var self;
|
2906
3157
|
self=this;
|
2907
|
-
if(self.$ba==null)self.$ba=nil;
|
2908
|
-
if(self.$bb==null)self.$bb=nil;
|
2909
|
-
if(self.$bc==null)self.$bc=nil;
|
2910
3158
|
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
2911
3159
|
;
|
2912
|
-
if (self.constructor != _a.constructor) return false;;
|
2913
|
-
_d=(_b=self.$ba.$g(nil,_a.$aw()), (_b!==false&&_b!==nil) ? ((_c=self.$bb.$g(nil,_a.$av()), (_c!==false&&_c!==nil) ? (self.$bc.$D(nil,_a.$aN())) : _c)) : _b);
|
2914
|
-
return _d}catch(_f){if(_f instanceof a$c && (!_f.a$b || _f.a$b==89))return _f.a$a;
|
2915
|
-
throw(_f)}}
|
2916
3160
|
|
2917
|
-
|
2918
|
-
|
2919
|
-
|
2920
|
-
|
3161
|
+
if (!(_a instanceof Array)) return false;
|
3162
|
+
if (self.length != _a.length) return false;
|
3163
|
+
|
3164
|
+
//
|
3165
|
+
// compare element-wise
|
3166
|
+
//
|
3167
|
+
for (var i = 0; i < self.length; i++)
|
3168
|
+
{
|
3169
|
+
if (! self[i].$g(nil, _a[i]))
|
3170
|
+
{
|
3171
|
+
//
|
3172
|
+
// at least for one element #eql? holds not true
|
3173
|
+
//
|
3174
|
+
return false;
|
3175
|
+
}
|
3176
|
+
}
|
3177
|
+
|
3178
|
+
return true;
|
3179
|
+
}catch(_c){if(_c instanceof a$c && (!_c.a$b || _c.a$b==93))return _c.a$a;
|
3180
|
+
throw(_c)}}
|
3181
|
+
|
3182
|
+
,$bd:
|
3183
|
+
/* Array#reverse */
|
3184
|
+
function(){var self;
|
2921
3185
|
self=this;
|
2922
|
-
if(self.$bc==null)self.$bc=nil;
|
2923
3186
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2924
3187
|
;
|
2925
|
-
|
2926
|
-
return _a}
|
3188
|
+
return self.concat().reverse()}
|
2927
3189
|
|
2928
|
-
,$
|
2929
|
-
/*
|
2930
|
-
function(){var self
|
2931
|
-
_a=nil;
|
3190
|
+
,$aD:
|
3191
|
+
/* Array#last */
|
3192
|
+
function(){var self;
|
2932
3193
|
self=this;
|
2933
|
-
if(self.$bb==null)self.$bb=nil;
|
2934
3194
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2935
3195
|
;
|
2936
|
-
|
2937
|
-
return _a}
|
3196
|
+
var v = self[self.length - 1]; return (v == null ? nil : v)}
|
2938
3197
|
|
2939
3198
|
,$o:
|
2940
|
-
/*
|
2941
|
-
function(){var self,
|
2942
|
-
|
3199
|
+
/* Array#to_s */
|
3200
|
+
function(){var self,_d;
|
3201
|
+
_d=nil;
|
2943
3202
|
self=this;
|
2944
|
-
if(self.$ba==null)self.$ba=nil;
|
2945
|
-
if(self.$bb==null)self.$bb=nil;
|
2946
|
-
if(self.$bc==null)self.$bc=nil;
|
2947
3203
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2948
3204
|
;
|
2949
|
-
|
2950
|
-
|
3205
|
+
_d=self.$M(function(_a){var _b;
|
3206
|
+
var _c=nil;
|
3207
|
+
_b=_a==null?nil:_a;
|
3208
|
+
_c=_b.$o();
|
3209
|
+
return _c}).$a6();
|
3210
|
+
return _d}
|
3211
|
+
|
3212
|
+
,$al:
|
3213
|
+
/* Array#[]= */
|
3214
|
+
function(_c,_a,_b){var self;
|
3215
|
+
self=this;
|
3216
|
+
try{if(arguments.length!=3)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 2)'));
|
3217
|
+
;
|
3218
|
+
return (self[_a] = _b)}catch(_d){if(_d instanceof a$c && (!_d.a$b || _d.a$b==97))return _d.a$a;
|
3219
|
+
throw(_d)}}
|
2951
3220
|
|
2952
3221
|
,$v:
|
2953
|
-
/*
|
2954
|
-
function(
|
2955
|
-
_d=nil;
|
3222
|
+
/* Array#each */
|
3223
|
+
function(_a){var self;
|
2956
3224
|
self=this;
|
2957
|
-
if(self.$ba==null)self.$ba=nil;
|
2958
|
-
if(self.$bb==null)self.$bb=nil;
|
2959
|
-
if(self.$bc==null)self.$bc=nil;
|
2960
3225
|
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2961
3226
|
;
|
2962
|
-
_a=self.$ba;
|
2963
|
-
if((_b=self.$ba.$ao(nil,self.$bb),_b!==false&&_b!==nil)){return nil};
|
2964
|
-
if((_b=self.$bc,_b!==false&&_b!==nil)){while((_b=_a.$5(nil,self.$bb),_b!==false&&_b!==nil)){_c(_a);
|
2965
|
-
_a=_a.$ah()};
|
2966
|
-
_d=nil;
|
2967
|
-
}else{while((_b=_a.$ad(nil,self.$bb),_b!==false&&_b!==nil)){_c(_a);
|
2968
|
-
_a=_a.$ah()};
|
2969
|
-
_d=nil;
|
2970
|
-
};
|
2971
|
-
return _d}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==92))return _e.a$a;
|
2972
|
-
throw(_e)}}
|
2973
3227
|
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2977
|
-
_a
|
3228
|
+
var elem;
|
3229
|
+
for (var i=0; i < self.length; i++) {
|
3230
|
+
elem = self[i];;
|
3231
|
+
_a((elem == null ? nil : elem));
|
3232
|
+
}
|
3233
|
+
return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==96))return _b.a$a;
|
3234
|
+
throw(_b)}}
|
3235
|
+
|
3236
|
+
,$bf:
|
3237
|
+
/* Array#each_with_index */
|
3238
|
+
function(_a){var self;
|
2978
3239
|
self=this;
|
2979
|
-
if(
|
2980
|
-
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3240
|
+
try{if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2981
3241
|
;
|
2982
|
-
|
2983
|
-
|
3242
|
+
|
3243
|
+
var elem;
|
3244
|
+
for (var i=0; i < self.length; i++) {
|
3245
|
+
elem = self[i];;
|
3246
|
+
_a([(elem == null ? nil : elem),i]);
|
3247
|
+
}
|
3248
|
+
return self}catch(_b){if(_b instanceof a$c && (!_b.a$b || _b.a$b==95))return _b.a$a;
|
3249
|
+
throw(_b)}}
|
2984
3250
|
|
2985
|
-
,$
|
2986
|
-
/*
|
2987
|
-
function(){var self
|
2988
|
-
_a=nil;
|
3251
|
+
,$4:
|
3252
|
+
/* Array#first */
|
3253
|
+
function(){var self;
|
2989
3254
|
self=this;
|
2990
|
-
if(self.$ba==null)self.$ba=nil;
|
2991
3255
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
2992
3256
|
;
|
2993
|
-
|
2994
|
-
return _a}
|
3257
|
+
var v = self[0]; return (v == null ? nil : v)}
|
2995
3258
|
|
2996
|
-
,$
|
2997
|
-
/*
|
2998
|
-
function(
|
2999
|
-
_c=nil;
|
3259
|
+
,$V:
|
3260
|
+
/* Array#length */
|
3261
|
+
function(){var self;
|
3000
3262
|
self=this;
|
3001
|
-
if(
|
3002
|
-
if(self.$bb==null)self.$bb=nil;
|
3003
|
-
if(self.$bc==null)self.$bc=nil;
|
3004
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3263
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3005
3264
|
;
|
3006
|
-
|
3007
|
-
if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)};
|
3008
|
-
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==91))return _e.a$a;
|
3009
|
-
throw(_e)}}
|
3265
|
+
return self.length}
|
3010
3266
|
|
3011
|
-
,$
|
3012
|
-
/*
|
3013
|
-
function(
|
3014
|
-
_e=nil;
|
3267
|
+
,$bg:
|
3268
|
+
/* Array#pop */
|
3269
|
+
function(){var self;
|
3015
3270
|
self=this;
|
3016
|
-
|
3017
|
-
if(arguments.length>4)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 3)'));
|
3018
|
-
if(_c==null)_c=false;
|
3271
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3019
3272
|
;
|
3020
|
-
(_d=[_a,_b],self.$ba=_d[0]==null?nil:_d[0],self.$bb=_d[1]==null?nil:_d[1],_d);
|
3021
|
-
_e=self.$bc=((_d=_c,_d!==false&&_d!==nil)?true:false);
|
3022
|
-
return _e}catch(_g){if(_g instanceof a$c && (!_g.a$b || _g.a$b==90))return _g.a$a;
|
3023
|
-
throw(_g)}}
|
3024
3273
|
|
3025
|
-
|
3026
|
-
|
3027
|
-
|
3028
|
-
|
3274
|
+
var elem = self.pop();
|
3275
|
+
return (elem == null ? nil : elem)}
|
3276
|
+
|
3277
|
+
,$k:
|
3278
|
+
/* Array#shift */
|
3279
|
+
function(){var self;
|
3029
3280
|
self=this;
|
3030
|
-
if(
|
3031
|
-
if(self.$bb==null)self.$bb=nil;
|
3032
|
-
if(self.$bc==null)self.$bc=nil;
|
3033
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3281
|
+
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3034
3282
|
;
|
3035
|
-
if((_b=_a.$5(nil,self.$ba),_b!==false&&_b!==nil)){return false};
|
3036
|
-
if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)};
|
3037
|
-
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==93))return _e.a$a;
|
3038
|
-
throw(_e)}}
|
3039
3283
|
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3284
|
+
var elem = self.shift();
|
3285
|
+
return (elem == null ? nil : elem)}
|
3286
|
+
|
3287
|
+
,$l:
|
3288
|
+
/* Array#empty? */
|
3289
|
+
function(){var self;
|
3043
3290
|
self=this;
|
3044
|
-
if(self.$ba==null)self.$ba=nil;
|
3045
|
-
if(self.$bb==null)self.$bb=nil;
|
3046
|
-
if(self.$bc==null)self.$bc=nil;
|
3047
3291
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3048
3292
|
;
|
3049
|
-
|
3050
|
-
if((_b=self.$ba.$ao(nil,self.$bb),_b!==false&&_b!==nil)){return _a};
|
3051
|
-
_c=self.$ba;
|
3052
|
-
if((_b=self.$bc,_b!==false&&_b!==nil)){while((_b=_c.$5(nil,self.$bb),_b!==false&&_b!==nil)){_a.$N(nil,_c);
|
3053
|
-
_c=_c.$ah()}}else{while((_b=_c.$ad(nil,self.$bb),_b!==false&&_b!==nil)){_a.$N(nil,_c);
|
3054
|
-
_c=_c.$ah()}};
|
3055
|
-
return _a}
|
3293
|
+
return (self.length == 0)}
|
3056
3294
|
|
3057
|
-
,$
|
3058
|
-
/*
|
3059
|
-
function(){var self,
|
3295
|
+
,$N:
|
3296
|
+
/* Array#to_a */
|
3297
|
+
function(){var self,_a;
|
3060
3298
|
_a=nil;
|
3061
3299
|
self=this;
|
3062
|
-
if(self.$ba==null)self.$ba=nil;
|
3063
|
-
if(self.$bb==null)self.$bb=nil;
|
3064
|
-
if(self.$bc==null)self.$bc=nil;
|
3065
3300
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3066
3301
|
;
|
3067
|
-
|
3302
|
+
_a=self;
|
3068
3303
|
return _a}
|
3069
3304
|
|
3070
|
-
,$
|
3071
|
-
/*
|
3072
|
-
function(
|
3073
|
-
_c=nil;
|
3074
|
-
self=this;
|
3075
|
-
if(self.$ba==null)self.$ba=nil;
|
3076
|
-
if(self.$bb==null)self.$bb=nil;
|
3077
|
-
if(self.$bc==null)self.$bc=nil;
|
3078
|
-
try{if(arguments.length!=2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3079
|
-
;
|
3080
|
-
if((_b=_a.$5(nil,self.$ba),_b!==false&&_b!==nil)){return false};
|
3081
|
-
if((_b=self.$bc,_b!==false&&_b!==nil)){_c=_a.$5(nil,self.$bb)}else{_c=_a.$ad(nil,self.$bb)};
|
3082
|
-
return _c}catch(_e){if(_e instanceof a$c && (!_e.a$b || _e.a$b==94))return _e.a$a;
|
3083
|
-
throw(_e)}}
|
3084
|
-
|
3085
|
-
}});$al = a$d({a$j: [],a$e: nil,a$c: "T_TestRegexp"});$am = a$d({a$j: [],a$e: nil,a$c: "T_TestNew"});$an = a$d({a$j: [],a$e: nil,a$c: "T_TestRange"});$W = a$d({a$j: [],a$e: $k,a$f: {$G:
|
3086
|
-
/* T_TestSend::TestSend.main */
|
3087
|
-
function(){var self,_b,_c,_d,_e;
|
3088
|
-
_e=nil;
|
3305
|
+
,$bi:
|
3306
|
+
/* Array#push */
|
3307
|
+
function(){var self,_a,_b;
|
3089
3308
|
self=this;
|
3090
|
-
|
3309
|
+
_a=[];
|
3310
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
3091
3311
|
;
|
3092
|
-
self
|
3093
|
-
self.$t(nil,$1.$a().$w(nil,"a_method",1,2));
|
3094
|
-
self.$t(nil,$2.$a().$w(nil,"a_method",1,2));
|
3095
|
-
self.$u(nil,"respond_to?");
|
3096
|
-
self.$t(nil,$1.$a().$r(nil,"a_method"));
|
3097
|
-
self.$t(nil,$1.$a().$r(nil,"to_s"));
|
3098
|
-
self.$t(nil,$1.$a().$r(nil,"inspect"));
|
3099
|
-
self.$t(nil,$1.$a().$r(nil,"b_method"));
|
3100
|
-
self.$t(nil,$1.$a().$r(nil,"c_method"));
|
3101
|
-
self.$u(nil,"method_missing");
|
3102
|
-
self.$t(nil,$m.$a().$r(nil,"blah_blah"));
|
3103
|
-
$m.$a().$be(nil,1,2,3);
|
3104
|
-
try{$1.$a().$be();
|
3105
|
-
self.$u(nil,"FAILURE?")}catch(_a){if(_a instanceof a$c)throw(_a);
|
3106
|
-
if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$u(nil,"catched!!!")}else{throw(_a)}};
|
3107
|
-
try{$1.$bf()}catch(_a){if(_a instanceof a$c)throw(_a);
|
3108
|
-
if((_b=$g.$f(nil,_a),_b!==false&&_b!==nil)){self.$t(nil,"goood")}else{throw(_a)}};
|
3109
|
-
self.$u(nil,"class Method");
|
3110
|
-
_c="hallo".$C(nil,"to_s");
|
3111
|
-
self.$t(nil,_c);
|
3112
|
-
self.$t(nil,_c.$O());
|
3113
|
-
_d=[1,2,3];
|
3114
|
-
_c=_d.$C(nil,"+");
|
3115
|
-
self.$t(nil,_c);
|
3116
|
-
self.$t(nil,_c.$O(nil,[2,3]));
|
3117
|
-
self.$t(nil,_c);
|
3118
|
-
_e=self.$t(nil,_d);
|
3119
|
-
return _e}
|
3312
|
+
self.push.apply(self, _a); return self}
|
3120
3313
|
|
3121
|
-
|
3122
|
-
/*
|
3314
|
+
,$bh:
|
3315
|
+
/* Array#to_ary */
|
3123
3316
|
function(){var self,_a;
|
3124
3317
|
_a=nil;
|
3125
3318
|
self=this;
|
3126
3319
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3127
3320
|
;
|
3128
|
-
_a=self
|
3321
|
+
_a=self;
|
3129
3322
|
return _a}
|
3130
3323
|
|
3131
|
-
|
3132
|
-
/*
|
3133
|
-
function(){var self
|
3134
|
-
_a=nil;
|
3324
|
+
,$bl:
|
3325
|
+
/* Array#dup */
|
3326
|
+
function(){var self;
|
3135
3327
|
self=this;
|
3136
3328
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3137
3329
|
;
|
3138
|
-
|
3139
|
-
return _a}
|
3330
|
+
return self.concat()}
|
3140
3331
|
|
3141
|
-
|
3142
|
-
/*
|
3143
|
-
function(){var self,_a,
|
3144
|
-
|
3332
|
+
,$i:
|
3333
|
+
/* Array#inspect */
|
3334
|
+
function(){var self,_a,_e;
|
3335
|
+
_e=nil;
|
3145
3336
|
self=this;
|
3146
3337
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3147
3338
|
;
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
self.$t(nil,(RegExp.$2 || nil));
|
3158
|
-
self.$t(nil,(RegExp.$3 || nil));
|
3159
|
-
_c=self.$t(nil,(RegExp.$4 || nil));
|
3160
|
-
return _c}
|
3339
|
+
_a="[";
|
3340
|
+
_a=_a.$R(nil,self.$M(function(_b){var _c;
|
3341
|
+
var _d=nil;
|
3342
|
+
_c=_b==null?nil:_b;
|
3343
|
+
_d=_c.$i();
|
3344
|
+
return _d}).$a6(nil,", "));
|
3345
|
+
_a=_a.$R(nil,"]");
|
3346
|
+
_e=_a;
|
3347
|
+
return _e}
|
3161
3348
|
|
3162
|
-
|
3163
|
-
/*
|
3164
|
-
function(){var self
|
3165
|
-
_a=nil;
|
3349
|
+
,$bk:
|
3350
|
+
/* Array#reverse! */
|
3351
|
+
function(){var self;
|
3166
3352
|
self=this;
|
3167
3353
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3168
3354
|
;
|
3169
|
-
|
3170
|
-
return _a}
|
3355
|
+
self.reverse(); return self}
|
3171
3356
|
|
3172
|
-
|
3173
|
-
/*
|
3174
|
-
function(){var self,_a;
|
3175
|
-
_a=nil;
|
3357
|
+
,$bj:
|
3358
|
+
/* Array#unshift */
|
3359
|
+
function(){var self,_a,_b;
|
3176
3360
|
self=this;
|
3177
|
-
|
3361
|
+
_a=[];
|
3362
|
+
for(_b=1;_b<arguments.length;_b++)_a.push(arguments[_b]);
|
3178
3363
|
;
|
3179
|
-
_a
|
3180
|
-
return _a}
|
3364
|
+
self.unshift.apply(self, _a); return self}
|
3181
3365
|
|
3182
|
-
,$
|
3183
|
-
/*
|
3366
|
+
,$a6:
|
3367
|
+
/* Array#join */
|
3368
|
+
function(_i,_a){var self,_b,_d,_h;
|
3369
|
+
_h=nil;
|
3370
|
+
self=this;
|
3371
|
+
try{if(arguments.length>2)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 1)'));
|
3372
|
+
if(_a==null)_a="";
|
3373
|
+
;
|
3374
|
+
_b="";
|
3375
|
+
self.$bf(function(_c){var _e,_f;
|
3376
|
+
var _g=nil;
|
3377
|
+
(_d=a$l(_c),_e=_d[0]==null?nil:_d[0],_f=_d[1]==null?nil:_d[1],_d);
|
3378
|
+
_b=_b.$R(nil,_e.$o());
|
3379
|
+
if((_d=_f.$8(nil,self.$V().$U(nil,1)),_d===false||_d===nil)){_g=_b=_b.$R(nil,_a)}else{_g=nil};
|
3380
|
+
return _g});
|
3381
|
+
_h=_b;
|
3382
|
+
return _h}catch(_j){if(_j instanceof a$c && (!_j.a$b || _j.a$b==98))return _j.a$a;
|
3383
|
+
throw(_j)}}
|
3384
|
+
|
3385
|
+
}});$E = a$d({a$j: [],a$e: $k,a$f: {$F:
|
3386
|
+
/* T_TestSimpleOutput::TestSimpleOutput.main */
|
3184
3387
|
function(){var self,_a;
|
3185
3388
|
_a=nil;
|
3186
3389
|
self=this;
|
3187
3390
|
if(arguments.length>1)throw($a.$a(nil,'wrong number of arguments ('+Math.max(0,arguments.length-1).toString()+' for 0)'));
|
3188
3391
|
;
|
3189
|
-
_a=self.$u(nil,"
|
3392
|
+
_a=self.$u(nil,"Hello World from RubyJS");
|
3190
3393
|
return _a}
|
3191
3394
|
|
3192
|
-
}}); $b.a$e = $k;
|
3193
|
-
var a$n = [$i,$k,$l,$m,$
|
3395
|
+
},a$c: "T_TestSimpleOutput::TestSimpleOutput"});$aF = a$d({a$j: [],a$e: nil,a$c: "T_TestLebewesen"}); $b.a$e = $k;
|
3396
|
+
var a$n = [$i,$k,$f,$l,$m,$n,$o,$p,$q,$r,$e,$s,$t,$u,$y,$x,$S,$T,$C,$W,$X,$h,$Y,$Z,$0,$H,$w,$F,$L,$4,$V,$5,$d,$6,$7,$8,$9,$_,$$,$aa,$ab,$j,$v,$a,$z,$U,$I,$ae,$af,$G,$M,$aj,$b,$c,$3,$ak,$al,$2,$am,$ah,$A,$an,$ac,$g,$P,$ao,$N,$J,$ad,$ap,$aq,$ar,$ag,$as,$at,$au,$av,$D,$Q,$ay,$K,$ai,$az,$aA,$aB,$R,$aC,$O,$B,$aD,$aE,$1,$E,$aF];
|
3194
3397
|
a$o(a$n);
|
3195
3398
|
for (var i=0; i<a$n.length; i++) a$p(a$n[i]);
|
3196
|
-
function main() { return $
|
3399
|
+
function main() { return $S.$F.apply($S, arguments); }var STDOUT_LINE_NO = 0;
|
3197
3400
|
var FAILURES = 0;
|
3198
|
-
var TOTAL =
|
3401
|
+
var TOTAL = 422;
|
3199
3402
|
|
3200
3403
|
function STDOUT_puts(str)
|
3201
3404
|
{
|