emartech / suite-js-sdk

Simple Javascript wrapper for the Emarsys API
MIT License
9 stars 35 forks source link

Fixing unran test cases #24

Closed gergelyke closed 9 years ago

gergelyke commented 9 years ago

The problem was, that:

var a = function * () {}
// a.constructor.name === 'GeneratorFunction'

var b = a.bind(this)
// b.constructor.name === 'Function'