Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5bcf5a586f8fb213ad119372a5e45dcd630784b6..a88284ef6d3b359e5c7714985eb46a0c90a04883 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -6279,7 +6279,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_QuoteJSONString) { |
HandleScope scope(isolate); |
CONVERT_ARG_HANDLE_CHECKED(String, string, 0); |
ASSERT(args.length() == 1); |
- return BasicJsonStringifier::StringifyString(isolate, string); |
+ Handle<Object> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, BasicJsonStringifier::StringifyString(isolate, string)); |
+ return *result; |
} |
@@ -6287,7 +6290,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_BasicJSONStringify) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 1); |
BasicJsonStringifier stringifier(isolate); |
- return stringifier.Stringify(Handle<Object>(args[0], isolate)); |
+ Handle<Object> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, stringifier.Stringify(args.at<Object>(0))); |
+ return *result; |
} |