| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index 8ddd20db3dab6403c5c08da4d646ad3b31ee0268..b4fb1a0eb34d7b9e692e758dd5495cedf885c6e5 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -36,9 +36,11 @@ RUNTIME_FUNCTION(Runtime_ThrowUnsupportedSuperError) {
|
|
|
| RUNTIME_FUNCTION(Runtime_ThrowConstructorNonCallableError) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 0);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSFunction, constructor, 0);
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| - isolate, NewTypeError(MessageTemplate::kConstructorNonCallable));
|
| + isolate,
|
| + NewTypeError(MessageTemplate::kConstructorNonCallable, constructor));
|
| }
|
|
|
|
|
|
|