Skip to content

Bump google-closure-compiler to 20260831.0.0 - #27689

Open
brendandahl wants to merge 1 commit into
emscripten-core:mainfrom
brendandahl:update-closure
Open

brendandahl wants to merge 1 commit into
emscripten-core:mainfrom
brendandahl:update-closure

Conversation

@brendandahl

Copy link
Copy Markdown
Collaborator

Update google-closure-compiler dependency to version 20260831.0.0.

Remove the WebAssembly.Memory.prototype.toResizableBuffer extern definition, which is now provided natively by Closure Compiler.

Update the fixedGetContext return type annotation to RenderingContext to match Closure's updated HTMLCanvasElement getContext extern.

Rebaseline codesize test expectations for the updated compiler output.

Comment thread tools/building.py Outdated
continue
if arg.startswith('--externs=') and arg.split('=', 1)[1].strip('\'"').endswith('webgpu-externs.js'):
continue
filtered.append(arg)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be this complex? Can't see just assume the exactly form that emdawn uses?

Comment thread tools/building.py Outdated

def filter_closure_args(args):
# TODO: this can be removed once emdawnwebgpu no longer passes in
# --externs=webgpu-externs.js

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open a bug in emdawn and link it here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(here via https://crbug.com/562078433 which Brendan filed)

I think we should update here to skip on emscripten 6.0.10+ or whatever - if there's a way to detect the version - and you can land this without filtering.

Brendan any chance you could try this and send a Dawn CL? (or a PR to https://github.com/google/dawn, that's probably easier)

Update google-closure-compiler dependency to version 20260831.0.0.

Remove the WebAssembly.Memory.prototype.toResizableBuffer extern
definition, which is now provided natively by Closure Compiler.

Update the fixedGetContext return type annotation to RenderingContext
to match Closure's updated HTMLCanvasElement getContext extern.

Filter out webgpu-externs.js when building with emdawnwebgpu because
Closure Compiler now includes native WebGPU externs (w3c_webgpu.js).

Rebaseline codesize test expectations for the updated compiler output.
"a.out.js": 270584,
"a.out.nodebug.wasm": 588266,
"total": 858850,
"a.out.js": 270729,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is a 250 byte regression... kind of sad :(

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.

3 participants