Skip to content

closure-compiler seems to delete static getter fields #24202

@sbc100

Description

@sbc100

When working on #24190 I ran into an issue where closure compiler was completely removing the parameterDescriptors static getter:

    static get parameterDescriptors() {                                              
      return audioParams;                                                            
    }    

This field seems to be required to be static getter field: https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/parameterDescriptors

As a horrible workaround I mangle this code before passing to closure and then unmangle it afterwards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions