github emscripten-core/emscripten 6.0.2

4 hours ago

What's Changed

  • The GROWABLE_ARRAYBUFFERS setting now defaults to 1, which means it will be
    used when available. Note that this only affects programs that are built with
    ALLOW_MEMORY_GROWTH, which is not enabled by default. (#27212)
  • New -sNODERAWSOCKETS setting that backs the POSIX sockets API with real TCP
    (node:net) and UDP (node:dgram) sockets on Node.js, with no ws, proxy
    process, or pthreads required. Supports incoming and outgoing TCP, UDP, IPv6,
    and -pthread with PROXY_TO_PTHREAD. Uses the public node APIs where
    available, falling back to tcp_wrap/udp_wrap on older Node.js. (#27080)
  • The following symbols are no longer included in INCOMING_MODULE_JS_API
    by default:
    • GL_MAX_TEXTURE_IMAGE_UNITS
    • SDL_canPlayWithWebAudio
    • SDL_numSimultaneouslyQueuedBuffers
    • freePreloadedMediaOnUse
    • preinitializedWebGLContext
    • keyboardListeningElement
    • doNotCaptureKeyboard
    • extraStackTrace
    • preloadPlugins
    • postMainLoop
    • preMainLoop
    • forcedAspectRatio
    • mainScriptUrlOrBlob
    • onFullScreen
    • INITIAL_MEMORY
    • wasmMemory
    • wasmBinary
      Anybody using these will see a clear error in their debug builds signaling
      that they now need to be explicitly added to -sINCOMING_MODULE_JS_API.

Contributors

Thanks to the following contributors: @sbc100 (36) @kleisauke (5) @dschuff (3) @guybedford (3) @Diyou (1) @fanchenkong1 (1) @stas-badzi (1) @UnknownHacker1 (1)

New Contributors

Full Changelog: 6.0.1...6.0.2

Don't miss a new emscripten release

NewReleases is sending notifications on new releases.