domenic / zones

Former home of the zones proposal for JavaScript
205 stars 13 forks source link

If handleError is not undefined, and IsCallable(handleError) is false #4

Closed raulsebastianmihaila closed 8 years ago

raulsebastianmihaila commented 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.

domenic commented 8 years ago

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.