Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 931525cbeb4e1f5ffba2f5064a8b598cc8d0a1d6..60f4307e30a97ccf7864b281d5de5d48312507b5 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -289,6 +289,18 @@ |
DCHECK(args.length() == 1); |
CONVERT_ARG_CHECKED(JSMessageObject, message, 0); |
return message->script(); |
+} |
+ |
+ |
+RUNTIME_FUNCTION(Runtime_ErrorToStringRT) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, error, 0); |
+ Handle<String> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, |
+ isolate->error_tostring_helper()->Stringify(isolate, error)); |
+ return *result; |
} |