github emscripten-core/emscripten 7.0.1

one hour ago

What's Changed

  • Emscripten's JavaScript tools (tools/compiler.mjs, tools/preprocessor.mjs,
    tools/acorn-optimizer.mjs, tools/unsafe_optimizations.mjs, and
    tools/lz4-compress.mjs) are now bundled into dist/ using rolldown. For
    folks using a git checkout of emscripten, ./bootstrap.py runs this bundling
    step automatically. (#28281)
  • Embind now generates JavaScript invoker functions at link time instead of
    using new Function at runtime. This improves startup time, makes
    -sDYNAMIC_EXECUTION=0 bindings just as fast as -sDYNAMIC_EXECUTION=1
    without needing -sEMBIND_AOT. (#28181)
  • C preprocessor defines from struct_info.json (previously accessed via
    {{{ cDefs.FOO }}}) are now exposed as const JavaScript library symbols
    (e.g., ENOENT, O_CREAT) and referenced directly in JS library code,
    making unminified output more readable. (#28144)
  • zlib port updated from 1.3.2 to 1.4. (#28210)
  • In multi-threaded builds with assertions enabled, addFunction now warns
    when it adds a function to the table: each thread has its own table, so the
    function pointer is only valid in the calling thread. (#28275)
  • emscripten_get_now() (and clock_gettime(CLOCK_MONOTONIC)) in pthreads
    builds now reads performance.timeOrigin once per thread. In Safari its value
    can vary between reads, which made the clock go backwards. (#28272)
  • Building with -sJSPI now bumps the default minimum supported browser
    versions to the first ones that support JSPI: Chrome 137, Firefox 153,
    Safari 27 and Node.js 24. (#28334)

Contributors

Thanks to the following contributors: @sbc100 (66) @juj (26) @dschuff (5) @guybedford (5) @brendandahl (4) @stephenduong1004 (3) @tlively (3) @clementperon (2) @farisbasha (2) @aheejin (1) @dasa (1) @gribbet (1) @jeremy-code (1) @rosalbito (1) @ryanking13 (1) @subhaushsingh (1) @Thanatos9404 (1) @ypujante (1)

New Contributors

Full Changelog: 7.0.0...7.0.1

Don't miss a new emscripten release

NewReleases is sending notifications on new releases.