Support hot reload with a prebuilt loader (#6743)

This commit is contained in:
John McCutchan
2016-11-07 14:25:07 -08:00
committed by GitHub
parent 10d20c77aa
commit fb3bf7a9d7
5 changed files with 59 additions and 26 deletions

View File

@@ -73,7 +73,10 @@ void testUsingContext(String description, dynamic testMethod(), {
if (bufferLogger.errorText.isNotEmpty)
print(bufferLogger.errorText);
}
throw error;
// Previously the following line read "throw error;". This is bad because
// it drops the error's actual stacktrace. Use 'rethrow' to preserve
// the stacktrace.
rethrow;
}
}, timeout: timeout);