Make sure cancelPrevious is a function before trying to call it.#53
Make sure cancelPrevious is a function before trying to call it.#53thibaultzanini wants to merge 1 commit intomontagejs:masterfrom thibaultzanini:fix-cancelprevious-raise-error
Conversation
|
Perhaps make this check earlier, and throw an error into the caller that provides it. cancelPrevious should be undefined or a function at this point. |
|
Thanks Kris, wouldn't throwing risk slowing down code by being deoptimized?
|
|
V8 does not penalize throw, but it does penalize try/catch, and that On Thu, Sep 8, 2016 at 5:20 PM Benoit Marchant notifications@github.com
|
|
PR updated |
|
@thibaultzanini check Travis |
|
@thibaultzanini could you rebase on master. Thx. |
No description provided.