Skip to content

Commit f07a388

Browse files
committed
Remove an ancient workaround in RTLong for a PhantomJS issue.
PhantomJS has been discontinued years ago. Supposedly the issue was fixed in v2.x but we never truly checked. Anyway, there is no point in keeping a defunct engine-specific workaround.
1 parent 37df9c2 commit f07a388

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

linker-private-library/src/main/scala/org/scalajs/linker/runtime/RuntimeLong.scala

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,15 +1016,9 @@ object RuntimeLong {
10161016

10171017
if (isInt32(alo, ahi)) {
10181018
if (isInt32(blo, bhi)) {
1019-
if (blo != -1) {
1020-
val lo = alo % blo
1021-
hiReturn = lo >> 31
1022-
lo
1023-
} else {
1024-
// Work around https://github.com/ariya/phantomjs/issues/12198
1025-
hiReturn = 0
1026-
0
1027-
}
1019+
val lo = alo % blo
1020+
hiReturn = lo >> 31
1021+
lo
10281022
} else {
10291023
// Either a == Int.MinValue && b == (Int.MaxValue + 1), or (abs(b) > abs(a))
10301024
if (alo == Int.MinValue && (blo == 0x80000000 && bhi == 0)) {

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ object Build {
20702070
case `default213Version` =>
20712071
if (!useMinifySizes) {
20722072
Some(ExpectedSizes(
2073-
fastLink = 443000 to 444000,
2073+
fastLink = 442000 to 443000,
20742074
fullLink = 90000 to 91000,
20752075
fastLinkGz = 57000 to 58000,
20762076
fullLinkGz = 24000 to 25000,

0 commit comments

Comments
 (0)