summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/synthetic-module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/synthetic-module.cc')
-rw-r--r--deps/v8/src/objects/synthetic-module.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/v8/src/objects/synthetic-module.cc b/deps/v8/src/objects/synthetic-module.cc
index b1196465bd..b5951d10f6 100644
--- a/deps/v8/src/objects/synthetic-module.cc
+++ b/deps/v8/src/objects/synthetic-module.cc
@@ -77,8 +77,7 @@ bool SyntheticModule::PrepareInstantiate(Isolate* isolate,
for (int i = 0, n = export_names->length(); i < n; ++i) {
// Spec step 7.1: Create a new mutable binding for export_name.
// Spec step 7.2: Initialize the new mutable binding to undefined.
- Handle<Cell> cell =
- isolate->factory()->NewCell(isolate->factory()->undefined_value());
+ Handle<Cell> cell = isolate->factory()->NewCell();
Handle<String> name(String::cast(export_names->get(i)), isolate);
CHECK(exports->Lookup(name).IsTheHole(isolate));
exports = ObjectHashTable::Put(exports, name, cell);