Index: runtime/lib/errors_patch.dart |
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart |
index 77251fecb08b8b081c8399a98dac8b0df31d7c3d..cd09d35af4ab2eb3920973fb840fa349c40aa3f0 100644 |
--- a/runtime/lib/errors_patch.dart |
+++ b/runtime/lib/errors_patch.dart |
@@ -358,3 +358,9 @@ class _InternalError { |
return msg_buf.toString(); |
} |
} |
+ |
+@patch class SyntaxError { |
+ _throwNew(String msg) { |
+ throw new SyntaxError(msg); |
+ } |
+} |