You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/05/07 07:44:01 UTC

incubator-weex git commit: [WEEX-309][iOS]fill up context information when javaScript runtime exception occurs

Repository: incubator-weex
Updated Branches:
  refs/heads/master 9425cc92d -> 089b7a785


[WEEX-309][iOS]fill up context information when javaScript runtime exception occurs

[WEEX-309][iOS]fill up context information when javaScript runtime exception occurs

Bug:309
close #1148


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/089b7a78
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/089b7a78
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/089b7a78

Branch: refs/heads/master
Commit: 089b7a7856ac530627138c89ee16d2d0623db203
Parents: 9425cc9
Author: acton393 <zh...@gmail.com>
Authored: Fri May 4 18:37:50 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon May 7 15:43:39 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/089b7a78/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
index e50e15a..a44c27d 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
@@ -982,7 +982,7 @@ _Pragma("clang diagnostic pop") \
         
         if (instance) {
             bundleUrl = instance.pageName?:([instance.scriptURL absoluteString]?:@"WX_KEY_EXCEPTION_WXBRIDGE");
-            message = [NSString stringWithFormat:@"[WX_KEY_EXCEPTION_WXBRIDGE] [%@:%@:%@] %@\n%@\n%@", exception[@"sourceURL"], exception[@"line"], exception[@"column"], [exception toString], [exception[@"stack"] toObject], instance.scriptURL.absoluteString];
+            message = [NSString stringWithFormat:@"[WX_KEY_EXCEPTION_WXBRIDGE] [%@:%@:%@] %@\n%@\n%@\n%@\n%@\n%@", exception[@"sourceURL"], exception[@"line"], exception[@"column"], [exception toString], [exception[@"stack"] toObject], instance.scriptURL.absoluteString, instance.callCreateInstanceContext?:@"", instance.createInstanceContextResult?:@"", instance.executeRaxApiResult?:@""];
             userInfo = @{@"jsMainBundleStringContentLength":instance.userInfo[@"jsMainBundleStringContentLength"]?:@"",
                          @"jsMainBundleStringContentMd5":instance.userInfo[@"jsMainBundleStringContentMd5"]?:@""};
         }