Skip to content

Commit 3ab7eaf

Browse files
committed
Remove POLYFILL_OLD_MATH_FUNCTIONS setting
These polyfills are only needed on ancient browser versions that there should be no need to support. This change bumps out minimum required chrome version from 33 to 38.
1 parent b682a38 commit 3ab7eaf

13 files changed

+10
-84
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ See docs/process.md for more on how version tagging works.
4848
`--post-js` files will now be delayed until after module creation and after
4949
`main` runs. This matches the existing behaviour when using sync instantation
5050
(`-sWASM_ASYNC_COMPILATION=0`) but is an observable difference. (#23157)
51+
- The `POLYFILL_OLD_MATH_FUNCTIONS` setting was removed. The browser versions
52+
that require these polyfills are no longer supported by emscripten so the
53+
polyfills should never be needed. (#23262)
5154

5255
3.1.74 - 12/14/24
5356
-----------------

src/preamble.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ function addOnPostRun(cb) {
324324
__ATPOSTRUN__.unshift(cb);
325325
}
326326

327-
#include "runtime_math.js"
328-
329327
// A counter of dependencies for calling run(). If we need to
330328
// do asynchronous work before running, increment this and
331329
// decrement it. Incrementing must happen in a place like

src/preamble_minimal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ var runtimeExited = false;
8585
var runtimeInitialized = false;
8686
#endif
8787

88-
#include "runtime_math.js"
8988
#include "memoryprofiler.js"
9089
#include "runtime_exceptions.js"
9190
#include "runtime_debug.js"

src/runtime_math.js

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8012
1+
7891
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21588
1+
21016
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6554
1+
6435
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17637
1+
17061
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
53887
1+
52851
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29086
1+
28642

0 commit comments

Comments
 (0)