Skip to content

Commit

Permalink
Update quickjs_runtime2.dart
Browse files Browse the repository at this point in the history
Added return to invoked dart functions to pass back result to javascript
  • Loading branch information
LucaBoss74 authored Aug 23, 2021
1 parent 9e29307 commit 22e4cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/quickjs/quickjs_runtime2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class QuickJsRuntime2 extends JavascriptRuntime {
.channelFunctionsRegistered[getEngineInstanceId()]!;

if (channelFunctions.containsKey(channelName)) {
channelFunctions[channelName]!.call(jsonDecode(message));
return channelFunctions[channelName]!.call(jsonDecode(message));
} else {
print('No channel $channelName registered');
}
Expand Down

0 comments on commit 22e4cf5

Please sign in to comment.