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

Unified Diff: lib/compiler/implementation/lib/js_helper.dart

Issue 11227021: Change StackOverflowException to be an Error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/compiler/implementation/compiler.dart ('k') | lib/core/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/js_helper.dart
diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
index d2e58104064674e0ccd5f24ee86264d89bfd65d5..a961599608584f2ed9c6f2226afca6ad0a82006d 100644
--- a/lib/compiler/implementation/lib/js_helper.dart
+++ b/lib/compiler/implementation/lib/js_helper.dart
@@ -925,7 +925,7 @@ unwrapException(ex) {
if (JS('bool', r'# instanceof RangeError', ex)) {
if (message is String && message.contains('call stack')) {
- return new StackOverflowException();
+ return new StackOverflowError();
}
// In general, a RangeError is thrown when trying to pass a number
@@ -939,7 +939,7 @@ unwrapException(ex) {
r"typeof InternalError == 'function' && # instanceof InternalError",
ex)) {
if (message is String && message == 'too much recursion') {
- return new StackOverflowException();
+ return new StackOverflowError();
}
}
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/core/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698