Commit Graph

23 Commits

Author SHA1 Message Date
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Andrew McCreight
276e069d1d Bug 1432576 - Remove B2G shared global isms from Promise.jsm. r=Gijs
B2G used to do shared globals in a weird way which required this, but
that is no longer used.

MozReview-Commit-ID: DKnNYW5XP1N
2018-01-23 10:14:24 -08:00
Mark Banner
6f514325ac Bug 1417944 - Enable ESLint rule mozilla/use-services for toolkit/. r=mossop
MozReview-Commit-ID: JhHXYma5Adp
2017-11-22 13:36:34 +00:00
Eddy Bruël
b7c5c3b9cd 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
40a23d2338 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
6372af70e0 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
6319593dde 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
39dc0c6097 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
647698a879 Bug 943512 - Stubify Promise.jsm so it can be used in the devtools debugger server. r=paolo 2014-03-05 10:39:19 -08:00
Ryan VanderMeulen
54a065c778 Backed out changeset 1c3076666191 (bug 943512) for Gaia UI test bustage. 2014-03-12 15:23:48 -04:00
Brandon Benvie
3a5a03cf90 Bug 943512 - Stubify Promise.jsm so it can be used in the devtools debugger server. r=paolo 2014-03-12 18:49:43 +01:00
Wes Kocher
b8b0f96173 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
e2d785772c Backed out changeset 3bfcf691690a (bug 966182) for adding a hazard. 2014-03-05 20:31:38 -08:00
Myk Melez
e6563c9d35 Bug 966182 - implement Task.async; r=paolo 2014-03-05 18:06:17 -08:00
Brandon Benvie
d9ce165c6f Bug 941757 - Add Promise constructor to Promise.jsm. r=paolo 2014-02-13 09:39:32 -08:00
Nils Maier
5c037183a0 Bug 932548 - Improve stack/message generation for uncaught Promise.jsm rejections. r=yoric 2013-10-31 23:23:10 -04:00
Tareq Khandaker
2db4721253 Bug 926635 - Improve layout of uncaught Promise.jsm error messages. r=Yoric 2013-10-27 08:03:51 -04:00
David Rajchenbach-Teller
a7fa0e6830 Bug 903433 - Report unhandled Promise.jsm exceptions upon garbage-collection. r=paolo 2013-10-12 14:17:46 -04:00
Bill McCloskey
a1075030ec Bug 908955 - Eagerly dump coding exceptions raised in Promise/Task callbacks. r=paolo 2013-09-06 09:19:24 -04:00
Irving Reid
62621610e6 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
d4917564e2 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
17bf57ffd3 Bug 895185 - Implement Promise.every(); r=paolo sr=mossop 2013-07-20 09:34:10 +02:00
Paolo Amadini
92d13b7935 Bug 810490 - Constant stack space promise. r=mossop 2013-05-30 14:23:42 +02:00