mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
4a6f84f91d
- `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 |
||
---|---|---|
.. | ||
.eslintrc.js | ||
browser_bug822367.js | ||
browser_bug902156.js | ||
browser_bug906190.js | ||
browser_bug1045809.js | ||
browser_check_identity_state.js | ||
browser_csp_block_all_mixedcontent.js | ||
browser_identity_UI.js | ||
browser_identityBlock_focus.js | ||
browser_identityPopup_clearSiteData.js | ||
browser_identityPopup_focus.js | ||
browser_iframe_navigation.js | ||
browser_ignore_same_page_navigation.js | ||
browser_insecureLoginForms.js | ||
browser_mcb_redirect.js | ||
browser_mixed_content_cert_override.js | ||
browser_mixed_content_with_navigation.js | ||
browser_mixed_passive_content_indicator.js | ||
browser_mixedcontent_securityflags.js | ||
browser_mixedContentFramesOnHttp.js | ||
browser_mixedContentFromOnunload.js | ||
browser_navigation_failures.js | ||
browser_no_mcb_for_loopback.js | ||
browser_no_mcb_for_onions.js | ||
browser_no_mcb_on_http_site.js | ||
browser_secure_transport_insecure_scheme.js | ||
browser.ini | ||
dummy_page.html | ||
file_bug822367_1.html | ||
file_bug822367_1.js | ||
file_bug822367_2.html | ||
file_bug822367_3.html | ||
file_bug822367_4.html | ||
file_bug822367_4.js | ||
file_bug822367_4B.html | ||
file_bug822367_5.html | ||
file_bug822367_6.html | ||
file_bug902156_1.html | ||
file_bug902156_2.html | ||
file_bug902156_3.html | ||
file_bug902156.js | ||
file_bug906190_1.html | ||
file_bug906190_2.html | ||
file_bug906190_3_4.html | ||
file_bug906190_redirected.html | ||
file_bug906190.js | ||
file_bug906190.sjs | ||
file_bug1045809_1.html | ||
file_bug1045809_2.html | ||
file_csp_block_all_mixedcontent.html | ||
file_csp_block_all_mixedcontent.js | ||
file_mixedContentFramesOnHttp.html | ||
file_mixedContentFromOnunload_test1.html | ||
file_mixedContentFromOnunload_test2.html | ||
file_mixedContentFromOnunload.html | ||
file_mixedPassiveContent.html | ||
head.js | ||
iframe_navigation.html | ||
insecure_opener.html | ||
simple_mixed_passive.html | ||
test_mcb_double_redirect_image.html | ||
test_mcb_redirect_image.html | ||
test_mcb_redirect.html | ||
test_mcb_redirect.js | ||
test_mcb_redirect.sjs | ||
test_no_mcb_for_loopback.html | ||
test_no_mcb_for_onions.html | ||
test_no_mcb_on_http_site_font2.css | ||
test_no_mcb_on_http_site_font2.html | ||
test_no_mcb_on_http_site_font.css | ||
test_no_mcb_on_http_site_font.html | ||
test_no_mcb_on_http_site_img.css | ||
test_no_mcb_on_http_site_img.html | ||
test-mixedcontent-securityerrors.html |