Skip to content

jackd/list_cast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

list_cast

Demonstrates dart2js TypeError as the result of wrapping a js library. dartdevc code runs fine.

Instructions

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.

Fixes:

  • 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.

About

Dart dart2js issue demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published