OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/ast/modules.h" | 5 #include "src/ast/modules.h" |
6 #include "src/ast/ast-value-factory.h" | 6 #include "src/ast/ast-value-factory.h" |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if (module_scope->LookupLocal(entry->local_name) == nullptr) { | 114 if (module_scope->LookupLocal(entry->local_name) == nullptr) { |
115 error_handler->ReportMessageAt( | 115 error_handler->ReportMessageAt( |
116 entry->location.beg_pos, entry->location.end_pos, | 116 entry->location.beg_pos, entry->location.end_pos, |
117 MessageTemplate::kModuleExportUndefined, entry->local_name); | 117 MessageTemplate::kModuleExportUndefined, entry->local_name); |
118 return false; | 118 return false; |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 return true; | 122 return true; |
123 } | 123 } |
| 124 |
124 } // namespace internal | 125 } // namespace internal |
125 } // namespace v8 | 126 } // namespace v8 |
OLD | NEW |