Skip to content

Commit

Permalink
fix: fix dart compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Sep 14, 2024
1 parent a21fce2 commit 32dba67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webf/lib/src/bridge/to_native.dart
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ void handleEvaluateScriptsResult(Object handle, int result) {
}
}

void handleEvaluateScriptByIdResult(_EvaluateScriptsByIdContext context, int result) {
void handleEvaluateScriptByIdResult(Object handle, int result) {
_EvaluateScriptsByIdContext context = handle as _EvaluateScriptsByIdContext;
context.completer.complete(result == 1);
}

Expand Down Expand Up @@ -464,7 +465,8 @@ class EvaluateWbcByIdContext {
EvaluateWbcByIdContext(this.completer);
}

void handleEvaluateWbcByIdResult(EvaluateWbcByIdContext context, int result) {
void handleEvaluateWbcByIdResult(Object handle, int result) {
EvaluateWbcByIdContext context = handle as EvaluateWbcByIdContext;
context.completer.complete(result == 1);
}

Expand Down

0 comments on commit 32dba67

Please sign in to comment.