Skip to content

6.0.2

Choose a tag to compare

@emscripten-bot emscripten-bot released this 01 Jul 19:43
7a2d97d

What's Changed

  • The GROWABLE_ARRAYBUFFERS setting now supports both =1 (auto-detect and
    use the feature) and =2 (unconditionally use the feature, avoiding the
    overhead in multi-threaded builds). It now defaults to =1, meaning the
    feature will be used when available. Note that this only affects programs
    that are built with ALLOW_MEMORY_GROWTH, which is not enabled by default.
    (#27096, #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