Zuyang Kou
Zuyang Kou
In [this article](https://www.usenix.org/legacy/event/woot08/tech/full_papers/daniel/daniel_html/index.html), the author mentioned a way to force GC: ``` for(i=0; i
非常棒!进展如何了?
我们最近遇到了一个故障,最简单修复方法是捕获并忽略异常。看了一下发现 JSPatch 并不支持处理异常,于是尝试自己添加一下。 第一个想法是写一个 extension,做到类似这样的效果: ``` js defineClass('JPViewController', { handleBtn: function(sender) { ignoreException(function() { self.ORIGhandleBtn(null); }); } }) ``` Extension 是这样写的: ``` Objective-C @implementation SALExceptionExtension + (void)main:(JSContext *)context { context[@"ignoreException"]...
@wengxianxun 没有解决
@fingerplay 这种方法也是只能捕获所有的异常,而且还不只是 JSPatch 包裹的代码的异常,而是整个 app 里面所有的异常
@wengxianxun 这样只能预埋一些 try-catch 吧?