Skip to content

Is there a reason for instantiating a custom plugin to get its name? #280

Description

@firemuzzy

I do not all the intricacies of JS but the following line seems weird to me

https://github.com/taskrabbit/node-resque/blob/1a2def9f46f9be5a80a5dd8630b89d23aff2ca53/lib/pluginRunner.js#L24

Is there a reason why the plugin is instantiated to just get name?
New-ing a custom plugin to just get its name breaks error sanity checks in my plugin's constructor to make sure required options are not null.

Are there any problems with it being
pluginName = PluginRefrence.name

If so, I can create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions