Index: pkg/dartino_compiler/lib/vm_commands.dart |
diff --git a/pkg/dartino_compiler/lib/vm_commands.dart b/pkg/dartino_compiler/lib/vm_commands.dart |
index f975fd73d4e2bfed2b8e064184f1b227b379c398..9f6125633ab777eccfceb5db9d6cf30b8bc32b00 100644 |
--- a/pkg/dartino_compiler/lib/vm_commands.dart |
+++ b/pkg/dartino_compiler/lib/vm_commands.dart |
@@ -118,7 +118,14 @@ abstract class VmCommand { |
} |
return new ProcessGetProcessIdsResult(ids); |
case VmCommandCode.UncaughtException: |
- return const UncaughtException(); |
+ int offset = 0; |
+ int processId = CommandBuffer.readInt32FromBuffer(buffer, offset); |
+ offset += 4; |
+ int functionId = translateFunction( |
+ CommandBuffer.readInt64FromBuffer(buffer, offset)); |
+ offset += 8; |
+ int bytecodeIndex = CommandBuffer.readInt64FromBuffer(buffer, offset); |
+ return new UncaughtException(processId, functionId, bytecodeIndex); |
case VmCommandCode.CommitChangesResult: |
bool success = CommandBuffer.readBoolFromBuffer(buffer, 0); |
String message = CommandBuffer.readAsciiStringFromBuffer( |
@@ -798,7 +805,12 @@ class CommitChangesResult extends VmCommand { |
} |
class UncaughtException extends VmCommand { |
- const UncaughtException() |
+ final int processId; |
+ final int functionId; |
+ final int bytecodeIndex; |
+ |
+ const UncaughtException( |
+ this.processId, this.functionId, this.bytecodeIndex) |
: super(VmCommandCode.UncaughtException); |
int get numberOfResponsesExpected => 0; |