Chromium Code Reviews| Index: dart/frog/leg/compiler.dart |
| diff --git a/dart/frog/leg/compiler.dart b/dart/frog/leg/compiler.dart |
| index b37616a4c4aa598ddd8ea4aeef17b2efe6dface4..a8f03b30a827ebdeb4456655cac6df7c0e0914e2 100644 |
| --- a/dart/frog/leg/compiler.dart |
| +++ b/dart/frog/leg/compiler.dart |
| @@ -169,6 +169,9 @@ class Compiler implements DiagnosticListener { |
| // TODO(ngeoffray): Lazily add this method. |
| universe.invokedNames[NO_SUCH_METHOD] = |
| new Set<Invocation>.from(<Invocation>[new Invocation(2)]); |
| + |
| + universe.libraries.putIfAbsent('dart:core', () => coreLibrary); |
|
ngeoffray
2012/02/16 10:50:50
Why putIfAbsent and not [] ?
ahe
2012/02/16 11:23:18
No particular reason. Now that I think about it, i
|
| + universe.libraries.putIfAbsent('dart:coreimpl', () => coreImplLibrary); |
| } |
| /** Define the JS helper functions in the given library. */ |