diff --git a/packages/process_run/test/shell_common_test.dart b/packages/process_run/test/shell_common_test.dart index 9f783df..4b4dc3f 100644 --- a/packages/process_run/test/shell_common_test.dart +++ b/packages/process_run/test/shell_common_test.dart @@ -186,7 +186,7 @@ void main() { if (isRunningAsJavascript) { fail('should fail'); } - } on StateError catch (e) { + } catch (e) { if (!isRunningAsJavascript) { rethrow; }