Skip to content

Commit

Permalink
[hapjs-platform#629]沙箱fix:V8Object$Undefined被混淆导致的崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-chai authored and jianghai33 committed Dec 12, 2023
1 parent 7464789 commit a0b84bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/runtime/android/runtime/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
public *;
}

-keep class * extends com.eclipsesource.v8.V8Object$Undefined {
*;
}

-keep class org.hapjs.render.jsruntime.V8InspectorNative {
public *;
}
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,6 @@ protected void doShutdown() {
}

public void processV8Exception(Exception ex) {
if (true) throw new RuntimeException(ex); // TODO
if (isTerminateExecution(ex.getMessage())) {
mIsTerminateExecution = false;
} else {
Expand Down

0 comments on commit a0b84bf

Please sign in to comment.