Commit Graph

16 Commits

Author SHA1 Message Date
Jim Blandy
b6b202b6bb 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
c42c8cd8e0 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
0408d3842f Backed out changeset 1c3076666191 (bug 943512) for Gaia UI test bustage. 2014-03-12 15:23:48 -04:00
Brandon Benvie
65e49d1000 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
0bbba6bb61 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
125fecd1b8 Backed out changeset 3bfcf691690a (bug 966182) for adding a hazard. 2014-03-05 20:31:38 -08:00
Myk Melez
3b2d9f023d Bug 966182 - implement Task.async; r=paolo 2014-03-05 18:06:17 -08:00
Brandon Benvie
4b66726e31 Bug 941757 - Add Promise constructor to Promise.jsm. r=paolo 2014-02-13 09:39:32 -08:00
Nils Maier
af6f802adf Bug 932548 - Improve stack/message generation for uncaught Promise.jsm rejections. r=yoric 2013-10-31 23:23:10 -04:00
Tareq Khandaker
d2520604e3 Bug 926635 - Improve layout of uncaught Promise.jsm error messages. r=Yoric 2013-10-27 08:03:51 -04:00
David Rajchenbach-Teller
e3678062f5 Bug 903433 - Report unhandled Promise.jsm exceptions upon garbage-collection. r=paolo 2013-10-12 14:17:46 -04:00
Bill McCloskey
00feec319e Bug 908955 - Eagerly dump coding exceptions raised in Promise/Task callbacks. r=paolo 2013-09-06 09:19:24 -04:00
Irving Reid
338b662f1d 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
2c25baab46 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
cac9bc4cd2 Bug 895185 - Implement Promise.every(); r=paolo sr=mossop 2013-07-20 09:34:10 +02:00
Paolo Amadini
7c0d63a0eb 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