Load Exception (#682)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index bec98e1..043828c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.12.24+5
+
+* Expose a way for tests to forward a `loadException` to the server.
+
 ## 0.12.24+4
 
 * Drain browser process `stdout` and `stdin`. This resolves test flakiness, especially in Travis
diff --git a/lib/dart.js b/lib/dart.js
index be430d0..0558a2f 100644
--- a/lib/dart.js
+++ b/lib/dart.js
@@ -19,6 +19,11 @@
   }, window.location.origin);
 }
 
+// Listen for dartLoadException events and forward to the server.
+window.addEventListener('dartLoadException', function(e) {
+  sendLoadException(e.detail);
+});
+
 // The basename of the current page.
 var name = window.location.href.replace(/.*\//, '').replace(/#.*/, '');
 
diff --git a/pubspec.yaml b/pubspec.yaml
index ee3b3d8..327f31e 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test
-version: 0.12.24+4
+version: 0.12.24+5
 author: Dart Team <misc@dartlang.org>
 description: A library for writing dart unit tests.
 homepage: https://github.com/dart-lang/test