Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart

Issue 12317130: Remove deprecated IllegalJSRegExpException class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/symbols.h ('k') | sdk/lib/core/exceptions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart
index b62b0b5c5b46e2d45906f891556561f8d88101ae..1435fe425b60ae34e14c9333fdbabf52c950980b 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/regexp_helper.dart
@@ -40,8 +40,9 @@ regExpMakeNative(JSSyntaxRegExp regExp, {bool global: false}) {
try {
return JS('var', r'new RegExp(#, #)', pattern, sb.toString());
} catch (e) {
- throw new IllegalJSRegExpException(pattern,
- JS('String', r'String(#)', e));
+ String errorMessage = JS('String', r'String(#)', e);
+ throw new FormatException(
+ "Illegal RegExp pattern: $pattern, $errorMessage");
}
}
« no previous file with comments | « runtime/vm/symbols.h ('k') | sdk/lib/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698