Evaluate targeting more modern runtimes.
See original GitHub issueInstead of targeting ECMAScript 5.1 we should probably target a more modern runtime, e.g ES2017 / ES2018. This means removing support legacy browsers such as IE11.
SubTasks:
- Chose target runtime (keep ES5 target).
-
Change TSC compilation target. - Inspect if this change has any performance impact. (no meaningful difference)
-
Evaluate if bundling flows need to be modified. - Document as Breaking Change
- Update root README compatibility section documentation.
- remove hacks for old engine around
function.name
- Remove flows using
isES2015MapSupported
-https://github.com/Chevrotain/chevrotain/blob/239c59fd48ea650b21fb31b3f2492fe1aa865b44/packages/utils/src/api.ts#L426-L428 - Evaluate removing hacks around Function.prototype.name
- https://github.com/Chevrotain/chevrotain/blob/24f37409689f7a31bb3290c4e9218a7fa7a34e07/packages/chevrotain/src/lang/lang_extensions.ts#L10-L25
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
LIBXSMM: Accelerating Small Matrix Multiplications by Runtime ...
Many modern highly scalable scientific simulations packages rely on small matrix ... Our evaluation proves that speed-ups of more than 10× are possible ......
Read more >CefSharp.Dom.TargetClosedException: 'Protocol error ...
TargetClosedException: 'Protocol error(Runtime.evaluate): Target closed. ... I think the page continuously gets updated with newer data ...
Read more >Dynatrace Runtime Vulnerability Analysis for the entire stack
Automatic vulnerability detection at runtime and AI-powered risk assessment further enable DevSecOps automation. In addition to modern ...
Read more >Android Runtime (ART) and Dalvik
ART and Dalvik are compatible runtimes running Dex bytecode, ... as input and generates a compiled app executable for the target device.
Read more >Runtime defense for containers - Prisma Cloud
Runtime defense is the set of features that provide both predictive and threat-based active protection for running containers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah ES2015 seems fine. As far as I’m concerned as long as it runs on the latest Node LTS it’s fine 😅
Changing the TSC target to ES2015 resulted in:
The one advantage was a ~12% decrease in minified bundle size.
I will keep ES5 compilation target for now. and will only remove the various hacks to support old engines.