| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 59ce01243c9c5d8db2d5fbe2c9f03dc92029e606..9e633721fdeade0852f815df56fc9f7a11c35769 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -19580,13 +19580,17 @@ bool JSReceiver::HasProxyInPrototype(Isolate* isolate) {
|
| return false;
|
| }
|
|
|
| -void Module::CreateExport(Handle<Module> module, Handle<String> name) {
|
| +void Module::CreateExport(Handle<Module> module, Handle<FixedArray> names) {
|
| + DCHECK_LT(0, names->length());
|
| Isolate* isolate = module->GetIsolate();
|
| Handle<Cell> cell =
|
| isolate->factory()->NewCell(isolate->factory()->undefined_value());
|
| Handle<ObjectHashTable> exports(module->exports(), isolate);
|
| - DCHECK(exports->Lookup(name)->IsTheHole(isolate));
|
| - exports = ObjectHashTable::Put(exports, name, cell);
|
| + for (int i = 0, n = names->length(); i < n; ++i) {
|
| + Handle<String> name(String::cast(names->get(i)), isolate);
|
| + DCHECK(exports->Lookup(name)->IsTheHole(isolate));
|
| + exports = ObjectHashTable::Put(exports, name, cell);
|
| + }
|
| module->set_exports(*exports);
|
| }
|
|
|
|
|