Skip to content

Commit b010e30

Browse files
committed
Correction of the handling of negative exponents in ToIntlMathematicalValue().
1 parent 5629007 commit b010e30

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/nodes/intl/ToIntlMathematicalValue.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,7 @@ private static Number parseStrUnsignedDecimalLiteral(String s) {
280280
if (exponentIndex != -1) {
281281
String exponentPart = s.substring(exponentIndex + 1);
282282
int exponent = parseSignedInteger(exponentPart);
283-
if (exponent > 0) {
284-
result = result.movePointRight(exponent);
285-
} else {
286-
result = result.movePointLeft(exponent);
287-
}
283+
result = result.movePointRight(exponent);
288284
}
289285

290286
return result;

0 commit comments

Comments
 (0)