Skip to content

Line 6 of getInferredName.js giving CSP issue for using Function #5

@mohiteca

Description

@mohiteca

getInferredName.js line 6 uses Function which is throwing error in CSP. Can anybody please help. I don't want to use unsafe-eval to bypass this error.
getInferredName = Function('s', 'return { [s]() {} }[s].name;');
image

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