mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
afbce123fa
dart2js will migrate slowly to modern JavaScript. The --legacy-javascript flag causes emitted code to be compatible with IE11, our only supported non-modern target. This is a temporary flag until IE11 is removed from support. The negative flag --no-legacy-javascript allows the code to be incompatible with legacy browsers and, over time, be improved to take advantage of modern JavaScript features. Initially --no-legacy-javascript will use some minimal features that are incompatible with IE11 as a 'trip-wire' to ensure that --legacy-javascript is always used for IE11. dart2js analytics can then be used to assess how much --legacy-javascript is used. (The 'trip-wire' unsupported feature is unguarded use of JavaScript Symbols.) The default at this change is --legacy-javascript so that this change is non-breaking. The default will be changed soon to --no-legacy-javascript. Change-Id: Ic13461362a5fa80293fb66b112945d1404a64a03 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139867 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> |
||
---|---|---|
.. | ||
_fe_analyzer_shared | ||
_js_interop_checks | ||
analysis_server | ||
analysis_server_client | ||
analysis_tool | ||
analyzer | ||
analyzer_cli | ||
analyzer_plugin | ||
async_helper | ||
build_integration | ||
compiler | ||
dart2js_tools | ||
dart2native | ||
dart_internal | ||
dartdev | ||
dartfix | ||
dev_compiler | ||
diagnostic | ||
expect | ||
front_end | ||
frontend_server | ||
js | ||
js_ast | ||
kernel | ||
meta | ||
modular_test | ||
native_stack_traces | ||
nnbd_migration | ||
smith | ||
sourcemap_testing | ||
status_file | ||
telemetry | ||
test_runner | ||
testing | ||
vm | ||
vm_service | ||
.gitignore | ||
BUILD.gn | ||
pkg.status |