summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorPierre Paridans <app@odoo.com>2020-12-16 08:54:00 +0000
committerVincentSchippefilt <vsc@odoo.com>2021-03-12 08:56:32 +0000
commit7ec87f3d9cf4a74069b93226ad360cb4df13ce6c (patch)
treed9b2f7637deb260824fc720d1e5b63482992093f /addons/web/static
parent852781cf64ad6bb10c552e106e93e2bb6035e34b (diff)
[IMP] test_lint: adjust ES version for supported browsers
This reverts commit d431f94c759f9811c640d81a274e90301276d001 and even upgrade the EcmaScript version further to ES10/2019. The original commit mainly targeted the support of MS Edge (pre-Chromium) and earlier versions of iOS 11. As with the release of Odoo 14, we don't support either of those (MS Edge only Chromium-based and iOS 12), the original restriction can be lifted and again target EcmaScript 9/2018. But furthermore, some features of ES10/2019 are already in use in Odoo 14+ (e.g. `Object.fromEntries()` used in SpreadSheet, PoS, WebEditor, Website Sale...) and the only browser not supporting them is Safari on iOS versions < 12.2. As there is no drop of supported devices between iOS 11 and 12 and they all have access to - at least - the latest revision of iOS 12 (cf. 12.5), it looks reasonable to target the latest revision only and not the earlier ones. This policy also matches the "ever-green-browsers" policy applied on desktop. Note: please note that the tool (es-check) used for testing the EcmaScript version targeted has for primary goal to catch unsupported syntax and reserved keywords only, but not the actual APIs available for a given EcmaScript version. (e.g. async/await keywords or string literals are tested *but not* Object.fromEntries() or Array.prototype.flatMap()). References: - https://kangax.github.io/compat-table/es2016plus/ - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries - https://en.wikipedia.org/wiki/IOS_12 closes odoo/odoo#63430 closes odoo/odoo#67735 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/web/static')
0 files changed, 0 insertions, 0 deletions