dart-lang / sdk

The Dart SDK, including the VM, dart2js, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10k stars 1.54k forks source link

dart2js: target modern browsers and use modern JS #45092

Open sigmundch opened 3 years ago

sigmundch commented 3 years ago

Two years ago we announced a plan to deprecate support for IE11, but due to change in priorities we have not yet made the underlying changes.

This bug is to track any work to enable modern JS features and start using them in our compiler. This includes:

lexaknyazev commented 3 years ago

Please explore including #29623 in this plan.

sigmundch commented 3 years ago

Thanks for the suggestion, I went ahead and added it to the list above.

ghost commented 3 years ago

it is very sad that you have to adapt to a poor javascript system, instead of developing your own virtual machine for the browser

lexaknyazev commented 3 years ago

Please consider promoting BigInt into language. With modern JS, it implies:

MrBirb commented 2 years ago

I believe in 2.14 this is the default behavior?

sigmundch commented 2 years ago

Yes, the flag was flipped by default in 2.14. So far, though, we only use ES6 method syntax, which was the change that was providing the biggest win in terms of code-size reduction (as much as 4% on some of our large internal apps).