Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 79f8247125ecc74eb307e5bad0d3064d9640451d..e2abb98ff92dd948e9288e1ba7a188c837122a8d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3797,7 +3797,8 @@ MaybeLocal<String> v8::Object::ObjectProtoToString(Local<Context> context) { |
isolate, self, toStringTag).ToHandle(&tag); |
RETURN_ON_FAILED_EXECUTION(String); |
if (tag->IsString()) { |
- class_name = i::Handle<i::String>::cast(tag).EscapeFrom(&handle_scope); |
+ class_name = Utils::OpenHandle(*handle_scope.Escape( |
+ Utils::ToLocal(i::Handle<i::String>::cast(tag)))); |
} |
} |
const char* prefix = "[object "; |