Skip to content

Commit 83a2d8e

Browse files
authored
Remove POLYFILL_OLD_MATH_FUNCTIONS from settings.js (#26340)
This setting was effectively removed years ago in #23262 but for some reason it was not moved to `LEGACY_SETTINGS`.
1 parent 3e49e31 commit 83a2d8e

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -952,15 +952,6 @@ can also vary between browsers.
952952

953953
Default value: false
954954

955-
.. _polyfill_old_math_functions:
956-
957-
POLYFILL_OLD_MATH_FUNCTIONS
958-
===========================
959-
960-
If set, enables polyfilling for Math.clz32, Math.trunc, Math.imul, Math.fround.
961-
962-
Default value: false
963-
964955
.. _legacy_vm_support:
965956

966957
LEGACY_VM_SUPPORT
@@ -970,7 +961,6 @@ Set this to enable compatibility emulations for old JavaScript engines. This giv
970961
the highest possible probability of the code working everywhere, even in rare old
971962
browsers and shell environments. Specifically:
972963

973-
- Add polyfilling for Math.clz32, Math.trunc, Math.imul, Math.fround. (-sPOLYFILL_OLD_MATH_FUNCTIONS)
974964
- Disable WebAssembly. (Must be paired with -sWASM=0)
975965
- Adjusts MIN_X_VERSION settings to 0 to include support for all browser versions.
976966
- Avoid TypedArray.fill, if necessary, in zeroMemory utility function.
@@ -3534,3 +3524,4 @@ for backwards compatibility with older versions:
35343524
- ``PROXY_TO_WORKER``: No longer supported (Valid values: [0])
35353525
- ``NODEJS_CATCH_EXIT``: No longer supported (Valid values: [0])
35363526
- ``NODEJS_CATCH_REJECTION``: No longer supported (Valid values: [0])
3527+
- ``POLYFILL_OLD_MATH_FUNCTIONS``: No longer supported (Valid values: [0])

src/settings.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -622,15 +622,10 @@ var GL_ENABLE_GET_PROC_ADDRESS = true;
622622
// [link]
623623
var JS_MATH = false;
624624

625-
// If set, enables polyfilling for Math.clz32, Math.trunc, Math.imul, Math.fround.
626-
// [link]
627-
var POLYFILL_OLD_MATH_FUNCTIONS = false;
628-
629625
// Set this to enable compatibility emulations for old JavaScript engines. This gives you
630626
// the highest possible probability of the code working everywhere, even in rare old
631627
// browsers and shell environments. Specifically:
632628
//
633-
// - Add polyfilling for Math.clz32, Math.trunc, Math.imul, Math.fround. (-sPOLYFILL_OLD_MATH_FUNCTIONS)
634629
// - Disable WebAssembly. (Must be paired with -sWASM=0)
635630
// - Adjusts MIN_X_VERSION settings to 0 to include support for all browser versions.
636631
// - Avoid TypedArray.fill, if necessary, in zeroMemory utility function.

tools/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
['PROXY_TO_WORKER', [0], 'No longer supported'],
253253
['NODEJS_CATCH_EXIT', [0], 'No longer supported'],
254254
['NODEJS_CATCH_REJECTION', [0], 'No longer supported'],
255+
['POLYFILL_OLD_MATH_FUNCTIONS', [0], 'No longer supported'],
255256
]
256257

257258
user_settings: dict[str, str] = {}

0 commit comments

Comments
 (0)