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:40:09 +0200
Message-ID: <CAE1ny+47wT4_KK9mXVmgdOJ9y4WqrjiGhS91wi-MnR=Fz6E7mA@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:38 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Tue, May 6, 2014 at 7:34 PM, Harry Halpin <hhalpin@ibiblio.org> wrote:
>> On Tue, May 6, 2014 at 8:32 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
>>> 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?
>
> No. The algorithms defined by the specification say as much. You can
> observe the returned promise, but it doesn't reveal state. And it
> won't reveal a value until the algorithms defined by the specification
> are done and either resolve or reject the promise.

Great! That's the right way to do a programming language.

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

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