RE: Promises: Auto-assimilating thenables returned by .then() callbacks: yay/nay?

From: Domenic Denicola [domenic@domenicdenicola.com]

> I do want to add one more thing: thenable assimilation only works if `then` is a function, so it's less dangerous than `__proto__` in that sense.

In particular, it means `return JSON.parse(userData)` will never trigger the thenable assimilation, since `JSON.parse` will never return something whose `then` property is a function.

Received on Thursday, 2 May 2013 22:52:01 UTC