Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Andrew McCreight 54616962d6 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

--HG--
extra : rebase_source : 499dcc0d141daf72320176fa0115073c9ed08686
2018-01-23 10:14:24 -08:00
Mark Banner e4262540c6 Bug 1417944 - Enable ESLint rule mozilla/use-services for toolkit/. r=mossop
MozReview-Commit-ID: JhHXYma5Adp

--HG--
extra : rebase_source : 79d9876a82b39070d5d3cd1e9464e23d113c88a8
2017-11-22 13:36:34 +00:00
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