Open wch opened 5 years ago
I think I was just being extremely conservative with the R6 interface and sticking to the JS promise spec, which specifies that non function arguments are no-ops. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then
Doesn't seem like a helpful policy, I agree...
The
then()
function gives an error when a non-functionable object is passed to it:However the
$then()
method doesn't give an error. I'm not sure what it's doing: