https://github.com/mozilla/addon-sdk/blob/master/lib/sdk/lang/functional.js#L168 ??