1.1 --- a/src/compiler/Scopes.cpp Sat Jan 12 16:13:46 2013 -0800
1.2 +++ b/src/compiler/Scopes.cpp Sat Jan 12 16:26:09 2013 -0800
1.3 @@ -168,6 +168,16 @@
1.4 return scope;
1.5 }
1.6
1.7 +Symbol *
1.8 +GlobalScope::findExported(Handle<String> name)
1.9 +{
1.10 + for (size_t i = 0; i < exported_.length(); i++) {
1.11 + if (exported_[i]->name() == name)
1.12 + return exported_[i];
1.13 + }
1.14 + return NULL;
1.15 +}
1.16 +
1.17 ImportScope::ImportScope(PoolAllocator &pool)
1.18 : Scope(pool, Scope::IMPORT, NULL)
1.19 {