Skip to content

Conversation

@juj
Copy link
Collaborator

@juj juj commented Sep 23, 2025

Optimize ENVIRONMENT_IS_WASM_WORKER check when building with Audio Worklets enabled, for a code size saving of 7 bytes.

Before, Closure would emit:

m = "em-ww" == globalThis.name,
n = !!globalThis.AudioWorkletGlobalScope,
n && (m = !0);

Afterwards, it emits

n = !!globalThis.AudioWorkletGlobalScope,
m = "em-ww" == globalThis.name || n,

…rklets enabled, for a code size saving of 7 bytes.
@juj juj enabled auto-merge (squash) September 25, 2025 20:25
@juj juj merged commit b45fcac into emscripten-core:main Sep 29, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants