gecko-dev/services/common
Rob Wu 4a6f84f91d Bug 1544834 - Replace deprecated generics in test code r=evilpie
- `Array.map` becomes `Array.from`
- Array copying via `Array.slice` becomes `Array.from`.
- `Array.forEach` that did not rely on closures becomes `for`-`of` loops.
- Anything else: `Array.X` becomes `Array.prototype.X`.

Complex cases:

dom/bindings/test/TestInterfaceJS.js and
dom/bindings/test/test_exception_options_from_jsimplemented.html
use `Array.indexOf` to generate an error with a specific error message.
Switched to `Array.prototype.forEach` to generate the same error.

js/src/jit-test/tests/basic/exception-column-number.js
In this test `Array.indexOf()` is used to generate an error. Since the
exact message doesn't matter, I switched to `Array.from()`.

Intentionally not changed:

editor/libeditor/tests/browserscope/lib/richtext/richtext/js/range.js
Did not modify because this is 3rd-party code and the code uses
feature detection as a fall back when Array generics are not used.

testing/talos/talos/tests/dromaeo/lib/mootools.js
Did not modify because mootools adds the `Array.slice` method to the
`Array` object.

Not changed because they check the implementation of Array generics:
js/src/jit-test/tests/basic/arrayNatives.js
js/src/jit-test/tests/basic/bug563243.js
js/src/jit-test/tests/basic/bug618853.js
js/src/jit-test/tests/basic/bug830967.js
js/src/jit-test/tests/jaeger/recompile/bug656753.js
js/src/jit-test/tests/self-hosting/alternate-static-and-instance-array-extras.js
js/src/tests/non262/Array/generics.js
js/src/tests/non262/Array/regress-415540.js
js/src/tests/non262/extensions/regress-355497.js
js/src/tests/non262/extensions/typedarray-set-neutering.js

Depends on D27802

Differential Revision: https://phabricator.services.mozilla.com/D27803

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:19 +00:00
..
docs Bug 1528704 - Add option to disable sync on RemoteSettings().get() r=glasserc 2019-02-20 15:15:00 +00:00
modules-testing Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
tests Bug 1544834 - Replace deprecated generics in test code r=evilpie 2019-04-17 19:03:19 +00:00
async.js Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao 2019-04-17 19:03:17 +00:00
blocklist-clients.js Bug 1539415 - make nsICertStorage (cert_storage) asynchronous for functions called from the main thread r=jcj,mgoodwin 2019-04-03 23:24:19 +00:00
hawkclient.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
hawkrequest.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
kinto-http-client.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
kinto-offline-client.js Bug 1530346 - Upgrade kinto-offline-client and report IndexedDB errors properly r=glasserc 2019-02-26 16:15:05 +00:00
kinto-storage-adapter.js Bug 1530346 - Upgrade kinto-offline-client and report IndexedDB errors properly r=glasserc 2019-02-26 16:15:05 +00:00
logmanager.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
moz.build Bug 1463750 - Move RemoteSettings to services/settings/ r=mgoodwin 2018-05-24 15:32:40 +02:00
observers.js Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8 2019-02-28 08:39:33 +00:00
rest.js bug 1531928 - remove unnecessary use of nsIBadCertListener2 in RESTRequest r=lina 2019-03-01 22:18:04 +00:00
services-common.js
servicesComponents.manifest
tokenserverclient.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
uptake-telemetry.js Bug 1539101 - Force extra values to be strings in Uptake Telemetry r=glasserc 2019-03-27 14:17:49 +00:00
utils.js Bug 1525319 - Removing context from OnDataAvailable r=valentin 2019-02-27 23:42:27 +00:00