Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 66cb77f683ab1f1a15ef3aaafffd03966616f46d..4b992929400aad81b109ce23c2f1c4b34803d3e6 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -253,6 +253,18 @@ RUNTIME_FUNCTION(Runtime_MessageGetScript) { |
} |
+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; |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_FormatMessageString) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 4); |