Skip to content

Clarify what are valid values for "identifier" in #call #76

Closed
@judofyr

Description

@judofyr

Context#call(identifier, *args) is only tested against these identifiers in the test case:

  • "id"
  • "a.b.id"
  • "CoffeeScript.eval"

However, in the wild (example for Autoprefixer Rails) people are sending full JavaScript code as the "identifier". This works on some backend (Node.js), but fails on others (Duktape). What is the intended behaviour here? Should Duktape support full JavaScript in identifier, or should Autoprefixer Rails be fixed to first define it as a function?

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