dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.1k stars 1.56k forks source link

Dart2Wasm implementation limitations #53703

Open askeksa opened 11 months ago

askeksa commented 11 months ago

The Wasm backend has some limitations compared to the full Dart spec due to inherent limitations in Wasm.

This issue is for:

The currently known limitations are:

parlough commented 11 months ago

\cc @MaryaBelanger Just so this is in the back of your mind.

From a website documentation perspective, outside of the lack of a stack overflow exception, the others sound quite rare or specific. As a result, I imagine rather than documenting them with special notes when discussing that functionality (like we do with some other platform limitations), they can likely be constrained to a page discussing dart2wasm specifically. Also, we will need to adjust how we discuss the number limitations on the web platform, or actually lack of those limitations for the dart2wasm compiler.

From a general perspective, it seems these limitations could be reported by one or more new lints, so package developers not testing against the dart2wasm compiler can more easily catch (and learn about) those limitations, despite their rarity.