| Index: src/runtime/runtime-api.cc
|
| diff --git a/src/runtime/runtime-api.cc b/src/runtime/runtime-api.cc
|
| index 740832e9c97712148215734396d824d896122e91..ab44226edf29832dee4c5422ff6635dafffc93c5 100644
|
| --- a/src/runtime/runtime-api.cc
|
| +++ b/src/runtime/runtime-api.cc
|
| @@ -123,5 +123,17 @@ RUNTIME_FUNCTION(Runtime_AddPropertyForTemplate) {
|
| Runtime::DefineObjectProperty(object, key, value, attributes));
|
| return *result;
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) {
|
| + HandleScope scope(isolate);
|
| + RUNTIME_ASSERT(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
| + {
|
| + Handle<Object> args[1] = {function};
|
| + THROW_NEW_ERROR_RETURN_FAILURE(
|
| + isolate, NewTypeError("illegal_invocation", HandleVector(args, 1)));
|
| + }
|
| +}
|
| }
|
| } // namespace v8::internal
|
|
|