Skip to content

"arguments.callee" cannot be used in strict mode while passing --jscomp_off=es5Strict #3014

Open
@martijnlentink

Description

@martijnlentink

When I am trying to compile a single file that contains a call to arguments.callee.name I get an error "arguments.callee" cannot be used in strict mode while passing. When I pass the argument --jscomp_off=es5Strict I see no difference.

Is don't think this is by design, right?

My command;
java -jar "res\closure-compiler-v20180610.jar" --compilation_level SIMPLE --js "C:\test.js" --js_output_file "C:\test.min.js" --define='IS_DEBUG=false' --jscomp_off=es5Strict --jscomp_off=unknownDefines

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