Demonstrates dart2js
TypeError
as the result of wrapping a js
library. dartdevc
code runs fine.
git clone https://github.com/jackd/list_cast.github
cd list_cast
pub get
webdev build
webdev server
Inspect console output of web/index.html
.
- Uncomment line 5 of index.dart and rebuild to remove error in
dart2js
version.
// animals = animals.cast<Animal>();
- Use
--omit-implicit-checks
(uncomment in build.yaml)
Other examples here.
Issue here.