summaryrefslogtreecommitdiff
path: root/deps/v8/src/ast/modules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/ast/modules.cc')
-rw-r--r--deps/v8/src/ast/modules.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/ast/modules.cc b/deps/v8/src/ast/modules.cc
index dbd20f50a8..9c122fca86 100644
--- a/deps/v8/src/ast/modules.cc
+++ b/deps/v8/src/ast/modules.cc
@@ -84,11 +84,11 @@ void SourceTextModuleDescriptor::AddStarExport(
}
namespace {
-Handle<HeapObject> ToStringOrUndefined(Isolate* isolate,
- const AstRawString* s) {
- return (s == nullptr)
- ? Handle<HeapObject>::cast(isolate->factory()->undefined_value())
- : Handle<HeapObject>::cast(s->string());
+Handle<PrimitiveHeapObject> ToStringOrUndefined(Isolate* isolate,
+ const AstRawString* s) {
+ return (s == nullptr) ? Handle<PrimitiveHeapObject>::cast(
+ isolate->factory()->undefined_value())
+ : Handle<PrimitiveHeapObject>::cast(s->string());
}
} // namespace