Skip to content

isDefineAMD fails when using arrow functions #21

@roguib

Description

@roguib

Add the following test in test/tests.js. Run npm test and notice that fails:

assert.ok(check("define(['jquery'] , ($) => { class A {} return A;});", types.isDefineAMD));

Checkout version 2.7.0, which has commit hash of f5c2a2c. Execute the same test and notice that now it passes. This might be a regression of #18, although I'm not sure about it.

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