Require FF43 for latest js (#10941)

* Require FF43 for latest js

`Array.prototype.includes` added in Firefox 43

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

* Update __init__.py
This commit is contained in:
Andrey 2017-12-06 08:09:41 +02:00 committed by Paulus Schoutsen
parent ddec566e10
commit 87fe674c70

View File

@ -583,9 +583,9 @@ def _is_latest(js_option, request):
family_min_version = { family_min_version = {
'Chrome': 50, # Probably can reduce this 'Chrome': 50, # Probably can reduce this
'Firefox': 41, # Destructuring added in 41 'Firefox': 43, # Array.protopype.includes added in 43
'Opera': 40, # Probably can reduce this 'Opera': 40, # Probably can reduce this
'Edge': 14, # Maybe can reduce this 'Edge': 14, # Array.protopype.includes added in 14
'Safari': 10, # many features not supported by 9 'Safari': 10, # many features not supported by 9
} }
version = family_min_version.get(useragent.browser.family) version = family_min_version.get(useragent.browser.family)