You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
because javascript has insane number of different implementations where it can be executed (e.g. chrome, firefox, nodejs, deno, njs) and all of those implementations have different versions and user/developer will want to have set of environments that need to be supported (checked against)
also there are web workers which have different environment (no DOM, no window, etc) and it should be possible to check web worker code correctly
proposal
we can define global variables, function, classes, etc. in environment like this
so we have showOpenFilePicker but we know it's only available in chrome@>=86 and we know that before using it we need to check if we are in correct environment either by checking existence of showOpenFilePicker or by checking something else that would refine our environment to be chrome@>=86
The text was updated successfully, but these errors were encountered:
we can add corejs and babel as environments as well so we know when polyfill is missing (or when specific polyfill is needed)
also this will be good for developers who target specific environments for example chrome extension developer who is targeting chrome@>=86 does not need to check existence of showOpenFilePicker
because javascript has insane number of different implementations where it can be executed (e.g. chrome, firefox, nodejs, deno, njs) and all of those implementations have different versions and user/developer will want to have set of environments that need to be supported (checked against)
also there are web workers which have different environment (no DOM, no window, etc) and it should be possible to check web worker code correctly
proposal
we can define global variables, function, classes, etc. in environment like this
so we have
showOpenFilePicker
but we know it's only available inchrome@>=86
and we know that before using it we need to check if we are in correct environment either by checking existence ofshowOpenFilePicker
or by checking something else that would refine our environment to bechrome@>=86
The text was updated successfully, but these errors were encountered: