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

Question re Promises and interaction with rest of JS

From: Harry Halpin <hhalpin@ibiblio.org>
Date: Tue, 6 May 2014 20:23:21 +0200
Message-ID: <CAE1ny+7eyFvmnkf2oDWzYNgy=HLehe2yOdhHB9LNDvkYLs5Knw@mail.gmail.com>
To: "www-tag@w3.org" <www-tag@w3.org>
TAG,

Some cryptographers are modelling the WebCrypto API spec formally and
are wondering if state can either 1) be accessed or 2) be changed
between when a promise has been called and it delivering an error
message or a result.

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?

I'm looking at what might be the ECMAScript draft [1].

It seems to depend on whether or not a promise was stored in a global
variable but was wondering if there was a list of cases. I'm also
seeing functions like

I've been looking at the spec (at least in DOM4)

   yours,
      harry

[1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promiseall-promiselist-abstact-operation
Received on Tuesday, 6 May 2014 18:23:48 UTC

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