Chromium Code Reviews
DescriptionCreate `loadLibrary` function element eagerly.
Previously we created this element lazily (when requested) but this
didn't work well with the new task model, because creating the element
required calling back into the context and requesting full analysis of
`dart:async` (in order to get access to the Future type), and this
could lead to reentrant task execution.
Now we explicitly create the element in ResolveLibraryTypeNamesTask,
which allows us to get the Future type from the TypeProvider, avoiding
reentrancy.
Fixes #24627.
R=brianwilkerson@google.com
Committed: https://github.com/dart-lang/sdk/commit/f145f89ccb4b807641914a0631e9c77995a29b20
Patch Set 1 #
Total comments: 2
Messages
Total messages: 5 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||