Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index cbbec4f90658a00d1d79411d1319d9d11dd1ee55..ca2df80355b741f9ef30a81ec284070705376e2e 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -462,12 +462,12 @@ RUNTIME_FUNCTION(Runtime_StoreKeyedToSuper_Sloppy) { |
RUNTIME_FUNCTION(Runtime_GetSuperConstructor) { |
SealHandleScope shs(isolate); |
DCHECK_EQ(1, args.length()); |
- CONVERT_ARG_HANDLE_CHECKED(JSFunction, active_function, 0); |
+ CONVERT_ARG_CHECKED(JSFunction, active_function, 0); |
Object* prototype = active_function->map()->prototype(); |
if (!prototype->IsConstructor()) { |
- return ThrowNotSuperConstructor( |
- isolate, Handle<JSFunction>::cast(handle(prototype, isolate)), |
- active_function); |
+ HandleScope scope(isolate); |
+ return ThrowNotSuperConstructor(isolate, handle(prototype, isolate), |
+ handle(active_function, isolate)); |
} |
return prototype; |
} |