Skip to content

obj has no method 'endsWith' #2

@LarsBuur

Description

@LarsBuur

Just added differential:workers

the package starts by reporting: MASTER: Requeued 0 jobs.

and then throws this error three times:

 TypeError: Object function (obj) {                                                                                // 48
     if (obj instanceof _) return obj;                                                                    // 49
     if (!(this instanceof _)) return new _(obj);                                                         // 50
     this._wrapped = obj;                                                                                 // 51
   } has no method 'endsWith'
     at packages/differential:workers/lib/init.coffee:13:23
     at Function._.each._.forEach (packages/underscore/underscore.js:113:1)
     at withJobs (packages/differential:workers/lib/init.coffee:12:5)
     at Package (packages/differential:workers/lib/init.coffee:89:7)

the source in /lib/init.coffee line 13 says:

cb(val, key) if _.endsWith(key, "Job") and key isnt "Job"

the problem is that my version of underscore does not include endsWith and http://underscorejs.org/ does not defined it either.

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