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

39 Коммитов

Автор SHA1 Сообщение Дата
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Mark Banner 74a3b5d2c6 Bug 1335813 - Enable eslint no-undef for toolkit, apart from components/ and content/, and fix various issues. r=jaws
MozReview-Commit-ID: LpXm7TbwvDb

--HG--
rename : toolkit/modules/tests/MockDocument.jsm => toolkit/modules/tests/modules/MockDocument.jsm
rename : toolkit/modules/tests/PromiseTestUtils.jsm => toolkit/modules/tests/modules/PromiseTestUtils.jsm
extra : rebase_source : 0013201da831f0d549aea2c9064481c1e1a3ffcc
2017-01-31 13:17:03 +00:00
Jared Wein 43bac26d30 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a

--HG--
extra : rebase_source : 014c0b04d8538dc5f15bc6dd4ed6bd220c55c5d4
2017-01-17 09:48:17 -06:00
Jared Wein ba08da0b5d Bug 1329012 - Enable the no-useless-call rule for eslint and fix the nine errors that it caught. r=mossop
MozReview-Commit-ID: 57vvfJlyvfW

--HG--
extra : rebase_source : 793106837614bc6756409712d8683a64f2096522
2017-01-05 12:56:53 -05:00
Jared Wein 9141469edf Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe

--HG--
extra : rebase_source : 8ab34c4e46a7c3075b459bf44786ec184d10d203
2016-12-30 21:47:25 -05:00
Jared Wein ecab54a7c9 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje

--HG--
extra : rebase_source : 0572a35415a766a3f31d266760ecd07f0dcc3f72
2016-12-29 18:34:54 -05:00
Wes Kocher 0dfb7c2b5c Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein 7255df4e9a Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR

--HG--
extra : rebase_source : da7172285d43b820421557ed3b05887e091ff939
2016-12-29 15:20:47 -05:00
Dave Townsend c5bb304fd9 Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm

--HG--
extra : rebase_source : 4073cebbef1694393efe312aaafbdb803adbd304
2016-11-11 15:22:34 -08:00
Dave Townsend 0a2c8f9b78 Bug 1316882: Turn on space-infix-ops eslint rule. r=jaws
MozReview-Commit-ID: HBpjT2uHJaZ

--HG--
extra : rebase_source : 78fe71a1d673a1c698520a9c82c6f35959614f8f
2016-11-10 14:48:04 -08:00
Jared Wein 87b2d4c295 Bug 1315013 - part 1, remove unnecessary double-slash comments that don't add value and look out of place with the spaced-comment eslint rule. r=mossop
MozReview-Commit-ID: HIUTSdkXxbY

--HG--
extra : rebase_source : 2f05e2f275ac7f293f9c650bdec8943189e3ce01
2016-11-03 14:42:06 -04:00
Jared Wein 5040f17e00 Bug 1312486 - Enable no-extra-boolean-cast, no-new-object, no-shadow-restricted-names, and spaced-comment rules for eslint. r=standard8
MozReview-Commit-ID: 7Gx90a5y8t6

--HG--
extra : rebase_source : 9c8a6b15c19982d720b0163fbbf19d465da786fe
2016-10-24 13:14:19 -04:00
Mike Conley ba17921111 Bug 1233497 - Temporarily allow unsafe CPOWs in Promise-backend.js and Task.jsm. r=billm
--HG--
extra : commitid : Jzchcq5SSGv
extra : rebase_source : a8f2cbfe5a77fc5d80eb04dd806841355479a953
2016-01-18 12:44:37 -05:00
J. Ryan Stinnett 1ea3b20493 Bug 1237798 - Use correct Components object inside CommonJS. r=Yoric
--HG--
extra : rebase_source : f401e4dd2cc3a47976617e4fbbf9d18a3ca47a7e
2016-01-07 17:18:05 -06:00
Dave Townsend 76c0eab703 Bug 1229519: Fix toolkit/modules to pass eslint checks. r=mak
--HG--
extra : commitid : 9muV4FzxxCp
extra : rebase_source : 2d651bfb17cd89768cff1f62d2ee7550a9c2589d
extra : amend_source : 5a0584163aaec0534dab50a8cac8597b58214f24
2015-12-03 09:58:56 -08:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Tom Tromey 9f3b16bf4c Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen
--HG--
extra : rebase_source : f9b507d8f005dbca6f40f510ca41a0cbb03aebf9
2015-07-24 07:01:00 -04:00
Ryan VanderMeulen b171b787bd Backed out changesets fa9fe193778f and 3eaf867930dd (bug 1148593) for test_async_setTimeout_stack.html and test_async_setTimeout_stack_across_globals.html failures. 2015-07-17 12:37:24 -04:00
Tom Tromey 843465db8e Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen 2015-07-17 07:48:00 -04:00
Jan Odvarko 15576598b0 Bug 1181506 - Define Cc and Ci. r=Yoric 2015-07-09 11:30:16 +02: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
Tooru Fujisawa 839e317d9a Bug 1069416 - Part 8: Remove JS_HAS_SYMBOLS from Promise-backend.js. r=paolo 2015-01-28 13:06:38 +09:00
Paolo Amadini dfb185fe5d Bug 1094208 - Part 3 of 3 - Use DOM Promise scheduling in Promise.jsm. r=Yoric 2014-11-13 11:19:08 +00:00
J. Ryan Stinnett a9277728ef Bug 1093363 - Add stack to unhandled promise rejection console message. r=Yoric 2014-11-03 15:55:00 +01:00
Jason Orendorff 2cacf236ed Bug 918828, part 1 - Change iteration code to call iterable[Symbol.iterator]() rather than iterable["@@iterator"](). r=Waldo with earlier review work by nbp.
--HG--
extra : rebase_source : 5780eed342b1780570650d140c7f14f966b7f1e1
2014-07-01 21:01:21 -05:00
Tomasz Kołodziejski a44e895971 Bug 1033406 - Promise.jsm promise should still work after Object.freeze. r=paolo
Fix by moving internal properties into N_INTERNALS.
2014-08-20 10:19:00 -04:00
Paolo Amadini dc1b839122 Bug 1030714 - Clarify that unhandled rejections indicate an issue with the code. r=Yoric 2014-06-26 13:40:12 +01: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
David Rajchenbach-Teller c7a88add5c Bug 995198 - Promise Debugging API. r=paolo 2014-04-15 12:51:19 -04:00
Brandon Benvie 90378e664d Bug 941920 - Implement full Promise API in Promise.jsm. r=paolo 2014-03-31 14:43:07 +02:00
Paolo Amadini 33e7a4d46a Bug 973239 - Promise should call executor and handlers with "undefined" as thisArg. r=benvie 2014-03-24 15:44:11 +01: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