On 2014/03/14 07:14:32, rossberg wrote:
On 2014/03/12 01:23:15, yhirano wrote:
> We have WebCore::ScriptPromise::then.
> Though it is possible to implement it with general property access,
> v8::Promise::Then is useful.
>
>
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/bindings/v8/ScriptPromise.h&sq=package:chromium&type=cs&l=59&rcl=1394542126
Interesting. But why does this need Then instead of plain chaining? This
is an
honest question. For example, I don't understand why you would need
thenable
assimilation on the API side.
ScriptPromise::then will be used by Blink developers to attach handlers to a
Promise provided by a JavaScript developer.
If we don't have |then|, we have to specify to pass a Promise that wraps an
object exactly once to DOM methods, i.e. a JavaScript developer should know
if
it is a Promise of an object or a Promise of a Promise of an object. It is
nonsense I think. We need recursive unwrapping.
https://codereview.chromium.org/194663003/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.