Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 27065) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -7693,11 +7693,12 @@ |
| intptr_t ignore = 0; |
| // Lookup the name in the library's symbols. |
| Object& obj = Object::Handle(isolate, lib.LookupEntry(name, &ignore)); |
| - if (obj.IsNull()) { |
| + // Library prefixes are not exported. |
| + if (obj.IsNull() || obj.IsLibraryPrefix()) { |
| // Lookup in the re-exported symbols. |
| obj = lib.LookupExport(name); |
|
Ivan Posva
2013/09/03 21:56:06
Wouldn't it be a conflict if the library is re-exp
hausner
2013/09/03 22:19:10
That is part of what Gilad has to clarify for us.
|
| } |
| - if (obj.IsNull() || HidesName(name)) { |
| + if (obj.IsNull() || HidesName(name) || obj.IsLibraryPrefix()) { |
| return Object::null(); |
| } |
| return obj.raw(); |