dart-sdk/pkg
Stephen Adams afbce123fa [dart2js] Add '--legacy-javascript' flag
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>
2020-03-19 02:11:07 +00:00
..
_fe_analyzer_shared Issue 40959. Support null-shorting for cascades. 2020-03-18 07:36:36 +00:00
_js_interop_checks Disallow non-external generative JS constructors 2020-03-06 17:06:39 +00:00
analysis_server Migration: in preview tool, links in edit details should not clear edit details 2020-03-18 21:40:02 +00:00
analysis_server_client Report FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED when a file is changed during the request. 2020-03-12 01:09:00 +00:00
analysis_tool
analyzer Issue 40959. Support null-shorting for cascades. 2020-03-18 07:36:36 +00:00
analyzer_cli Add the attachment with the content of the file being analyzed. 2020-03-10 04:57:20 +00:00
analyzer_plugin Check for importedLibrary is null in importLibraryElement(). 2020-03-15 21:22:37 +00:00
async_helper Make minitest and async_minitest NNBD agnostic. 2020-03-16 19:58:10 +00:00
build_integration
compiler [dart2js] Add '--legacy-javascript' flag 2020-03-19 02:11:07 +00:00
dart2js_tools
dart2native pkg/dart2native: make it clear this package is not meant to be published 2020-03-12 17:05:06 +00:00
dart_internal
dartdev Fix the output when running dart help pub.  Process.runSync(..) is used since printUsage() is not an async method. 2020-03-18 18:05:26 +00:00
dartfix Add sanity checks for NNBD state in migration. 2020-03-16 18:27:58 +00:00
dev_compiler [dartdevc] Throw TypeError instead of CastError 2020-03-18 18:39:26 +00:00
diagnostic
expect Make minitest and async_minitest NNBD agnostic. 2020-03-16 19:58:10 +00:00
front_end Add dart2js test directories to the CFE opt-out whitelist. 2020-03-18 08:36:56 +00:00
frontend_server [frontend_server] output dill during initial compilation to JavaScript 2020-03-16 20:34:46 +00:00
js Remove some stale JS interop known differences 2020-02-26 00:52:43 +00:00
js_ast
kernel [cfe] Remove flag --force-nnbd-checks 2020-03-16 15:01:38 +00:00
meta
modular_test Fix another modular test expectation file. 2020-02-15 02:39:46 +00:00
native_stack_traces [vm/compiler] Fix address sizes in DWARF generator. 2020-03-03 12:36:50 +00:00
nnbd_migration Migration: add grayed-out spaces to indicate types not being made nullable. 2020-03-18 21:18:22 +00:00
smith Re-land "[vm] AOT blobs snapshots are obsolete. Remove dead code." 2020-02-17 11:12:15 +00:00
sourcemap_testing
status_file
telemetry Allow adding attachments to CrashReportSender.sendReport() 2020-03-04 20:09:16 +00:00
test_runner Remove support for HTML multitests. 2020-03-17 21:04:35 +00:00
testing
vm [vm/nnbd] Specialize List.filled constructor invocations 2020-03-18 23:40:40 +00:00
vm_service [ package:vm_service ] 4.0.0 release, Sentinels are now thrown, Future<dynamic> returns are now Future<Response> 2020-03-05 18:51:29 +00:00
.gitignore
BUILD.gn [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
pkg.status [dartdev] add a dartdev 'create' command 2020-02-02 02:23:13 +00:00