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