File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
sources/net.sf.j2s.core/test/dev/js Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -4718,7 +4718,7 @@ return this.valueOf();
47184718} ) ;
47194719m$ ( Boolean , "$valueOf" ,
47204720function ( b ) {
4721- return ( ( typeof b == "string" ? "true" . equalsIgnoreCase ( b ) : b ) ?Boolean . TRUE :Boolean . FALSE ) ;
4721+ return ( ( typeof b == "string" ? "true" . equalsIgnoreCase$S ( b ) : b ) ?Boolean . TRUE :Boolean . FALSE ) ;
47224722} , 1 ) ;
47234723
47244724m$ ( Boolean , "toString" ,
@@ -4761,14 +4761,14 @@ return(b.value==this.value?0:(this.value?1:-1));
47614761} ) ;
47624762m$ ( Boolean , "toBoolean" ,
47634763function ( name ) {
4764- return ( typeof name == "string" ? name . equalsIgnoreCase ( "true" ) : ! ! name ) ;
4764+ return ( typeof name == "string" ? name . equalsIgnoreCase$S ( "true" ) : ! ! name ) ;
47654765} , 1 ) ;
47664766
47674767// the need is to have new Boolean(string), but that won't work with native Boolean
47684768// so instead we have to do a lexical switch from "new Boolean" to "Boolean.from"
47694769m$ ( Boolean , "from" ,
47704770function ( name ) {
4771- return Clazz . $new ( Boolean . construct , [ typeof name == "string" ? name . equalsIgnoreCase ( "true" ) : ! ! name ] ) ;
4771+ return Clazz . $new ( Boolean . construct , [ typeof name == "string" ? name . equalsIgnoreCase$S ( "true" ) : ! ! name ] ) ;
47724772} , 1 ) ;
47734773
47744774Boolean . TRUE = Boolean . prototype . TRUE = Clazz . $new ( Boolean . construct , [ true ] ) ;
@@ -5149,12 +5149,7 @@ sp.endsWith$S=function(suffix){
51495149return sn ( this , suffix , this . length - suffix . length ) ;
51505150} ;
51515151
5152-
5153- sp . equals = function ( anObject ) {
5154- return this . valueOf ( ) == anObject ;
5155- } ;
5156-
5157- sp . equals$O = function ( anObject ) {
5152+ sp . equals = sp . equals$O = function ( anObject ) {
51585153return this . valueOf ( ) == anObject ;
51595154} ;
51605155
You can’t perform that action at this time.
0 commit comments