diff options
Diffstat (limited to 'deps/v8/src/ast/modules.cc')
-rw-r--r-- | deps/v8/src/ast/modules.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/ast/modules.cc b/deps/v8/src/ast/modules.cc index dbd20f50a80..9c122fca869 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 |