W3C home > Mailing lists > Public > www-tag@w3.org > May 2014

Re: Question re Promises and interaction with rest of JS

From: Harry Halpin <hhalpin@ibiblio.org>
Date: Tue, 6 May 2014 20:34:20 +0200
Message-ID: <CAE1ny+5C8MKiwLiD1_njyrxxja29270_j-OpB9=m=C_gWXe5gg@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: "www-tag@w3.org" <www-tag@w3.org>
On Tue, May 6, 2014 at 8:32 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Tue, May 6, 2014 at 7:23 PM, Harry Halpin <hhalpin@ibiblio.org> wrote:
>> For example, can I call for a key to be generated using WebCrypto, and
>> can that have *any* effect other promises before the operation is
>> complete (i.e. while pending)? Can other promises see a method has
>> been called but is still running before its end, and change their
>> behavior before that end? Or are they isolated?
>
> You don't have access to the state of asynchronous operations.
>

So, no *possible* access to any information, by say a determined or
even malicious attacker?


>
>> I've been looking at the spec (at least in DOM4)
>
> Promises are defined by JavaScript.

Yes, I attached the link of what I was looking at. Not sure where the
latest/greatest version is.

  thanks,

    harry

>
>
> --
> http://annevankesteren.nl/
Received on Tuesday, 6 May 2014 18:34:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:33:25 UTC