Closed raulsebastianmihaila closed 8 years ago
In the More full-featured solution section, step 2 of the first algorithm should probably be:
If handleError is not undefined or IsCallable(handleError) is false, throw a TypeError exception.
No, I don't think so. Your proposed text would throw if handleError is function() {} since then it is not undefined so the "or" clause triggers and we throw.
handleError
function() {}
In the More full-featured solution section, step 2 of the first algorithm should probably be:
If handleError is not undefined or IsCallable(handleError) is false, throw a TypeError exception.