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.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/ast/modules.cc b/deps/v8/src/ast/modules.cc
index 261b72c352..dbd20f50a8 100644
--- a/deps/v8/src/ast/modules.cc
+++ b/deps/v8/src/ast/modules.cc
@@ -84,10 +84,11 @@ void SourceTextModuleDescriptor::AddStarExport(
}
namespace {
-Handle<Object> ToStringOrUndefined(Isolate* isolate, const AstRawString* s) {
+Handle<HeapObject> ToStringOrUndefined(Isolate* isolate,
+ const AstRawString* s) {
return (s == nullptr)
- ? Handle<Object>::cast(isolate->factory()->undefined_value())
- : Handle<Object>::cast(s->string());
+ ? Handle<HeapObject>::cast(isolate->factory()->undefined_value())
+ : Handle<HeapObject>::cast(s->string());
}
} // namespace