Skip to content

[linker] Automatic stripping removes Function #158

Description

@jamieparkinson

It seems like the automatic stripper in XSL removes too much of the Function object. When I compile the following with "strip": "*" -

const code = '42 * a';
const foo = new Function('a', code);

trace(foo(27));

I get an error as the Function constructor has been stripped (Function: dead strip!), when I expect to find 1134 traced.

Is this intended behaviour? If so it would be good if it was documented. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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