mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
better valueOf
This commit is contained in:
parent
9cba306116
commit
d88a80c3cc
@ -958,7 +958,7 @@ public class Java2TypeScriptAdapter extends PrinterAdapter {
|
|||||||
print("((str, index, len) => str.join('').substring(index, index + len))(")
|
print("((str, index, len) => str.join('').substring(index, index + len))(")
|
||||||
.printArgList(invocationElement.getArguments()).print(")");
|
.printArgList(invocationElement.getArguments()).print(")");
|
||||||
} else {
|
} else {
|
||||||
print("new String(").printArgList(invocationElement.getArguments()).print(").toString()");
|
print("String(").printArgList(invocationElement.getArguments()).print(").toString()");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case "subSequence":
|
case "subSequence":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user