Skip to content

AJSDCE acorn pass can strip "use strict"; #17963

@sbc100

Description

@sbc100

It turns "use strict"; into null;.

This on its own is maybe not that bad, but that ends up generating a closure warning:

a.out.jso4.js:1:0: WARNING - [JSC_USELESS_CODE] Suspicious code. This code lacks side-effects. Is there a bug?
  1| null;
     ^^^^

This is the root cause of #17939

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions