Commit Graph

20 Commits

Author SHA1 Message Date
Eddy Bruël
ef17d64c59 Bug 1164564 - Refactor Promise-backend.js so it can be required as a CommonJS module on the main thread;r=paolo 2015-06-11 21:24:15 +02:00
Ryan VanderMeulen
480baa5452 Backed out changeset 0ca665e88ae5 (bug 1164564) for Linux debug test_promises_actor_onpromisesettled.js failures. 2015-06-10 12:07:07 -04:00
Eddy Bruël
1de8404025 Bug 1164564 - Refactor Promise-backend.js so it can be loaded as a CommonJS module on the main thread;r=jlong 2015-06-10 14:25:07 +02:00
Eddy Bruël
8411c1dcfe Bug 1164564 - Refactor Promise-backend.js so it can be required as a CommonJS module;r=jlong 2015-05-26 17:05:07 +02:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Brandon Benvie
5ec7b047de Bug 943512 - Stubify Promise.jsm so it can be used in the devtools debugger server. r=paolo
--HG--
rename : toolkit/modules/Promise.jsm => toolkit/modules/Promise-backend.js
2014-03-05 10:39:19 -08:00
Ryan VanderMeulen
315d399635 Backed out changeset 1c3076666191 (bug 943512) for Gaia UI test bustage. 2014-03-12 15:23:48 -04:00
Brandon Benvie
90b6c59fde Bug 943512 - Stubify Promise.jsm so it can be used in the devtools debugger server. r=paolo
--HG--
rename : toolkit/modules/Promise.jsm => toolkit/modules/Promise-backend.js
2014-03-12 18:49:43 +01:00
Wes Kocher
af2cd64053 Unbacked out changeset 19fe1e621c5c (bug 966182) because it didn't actually introduce the new hazard. 2014-03-05 20:45:55 -08:00
Wes Kocher
21932fdf4b Backed out changeset 3bfcf691690a (bug 966182) for adding a hazard. 2014-03-05 20:31:38 -08:00
Myk Melez
4aa1695140 Bug 966182 - implement Task.async; r=paolo 2014-03-05 18:06:17 -08:00
Brandon Benvie
44b85c097e Bug 941757 - Add Promise constructor to Promise.jsm. r=paolo 2014-02-13 09:39:32 -08:00
Nils Maier
238bb4b965 Bug 932548 - Improve stack/message generation for uncaught Promise.jsm rejections. r=yoric 2013-10-31 23:23:10 -04:00
Tareq Khandaker
29d7a9976d Bug 926635 - Improve layout of uncaught Promise.jsm error messages. r=Yoric 2013-10-27 08:03:51 -04:00
David Rajchenbach-Teller
6272881c44 Bug 903433 - Report unhandled Promise.jsm exceptions upon garbage-collection. r=paolo 2013-10-12 14:17:46 -04:00
Bill McCloskey
35e0cc347c Bug 908955 - Eagerly dump coding exceptions raised in Promise/Task callbacks. r=paolo 2013-09-06 09:19:24 -04:00
Irving Reid
74b4197528 Bug 888753: Reschedule walker loop more often to avoid deadlocks with nested event loops; r=paolo 2013-08-19 15:55:20 -04:00
Tim Taubert
e730bbb4bf Bug 895185 - Rename Promise.every() to .all() to reduce confusion about our differing implementation; r=paolo 2013-07-31 10:58:44 -07:00
Tim Taubert
c3c7b7a4cb Bug 895185 - Implement Promise.every(); r=paolo sr=mossop 2013-07-20 09:34:10 +02:00
Paolo Amadini
d5594dfe54 Bug 810490 - Constant stack space promise. r=mossop
--HG--
rename : addon-sdk/test/unit/test_promise.js => toolkit/modules/tests/xpcshell/test_Promise.js
2013-05-30 14:23:42 +02:00