Add runtime detection for toResizableBuffer. NFC#27096
Conversation
Since this is now shipping in the current version of all major browsers we want to take advantage of it whenever possible. I am leaving the GROWABLE_ARRAYBUFFERS setting in place for now since enabling it unconditionally can still save a little on codesize but we may want to to just remove that at some point. As a side effect I think this might address emscripten-core#27084.
4a2b43f to
11fb3c6
Compare
A nice thing about emscripten/system/lib/standalone/standalone.c Lines 138 to 141 in d1fbb02 It also skips the emscripten/tools/acorn-optimizer.mjs Lines 1081 to 1084 in d1fbb02 Thinking about this more, since emscripten/tools/feature_matrix.py Lines 143 to 151 in d1fbb02 |
Since this is now shipping in the current version of all major browsers
we want to take advantage of it whenever possible.
I am leaving the GROWABLE_ARRAYBUFFERS setting in place for now since
enabling it unconditionally can still save a little on codesize but we
may want to to just remove that at some point.
As a side effect I think this might address #27084.