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

Unified Diff: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart

Issue 1138313002: Better toString and Error.toSafeString output for closures for dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
Index: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
index aef381f2c88d1bc67b31354f4e521bfde8703691..e21ba1daf0bd280ce3c6192fe7e634dee5d0c232 100644
--- a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
@@ -224,7 +224,7 @@ List<jsAst.Statement> buildTearOffCode(JavaScriptBackend backend) {
} else {
// Default values for mocked-up test libraries.
tearOffAccessText =
- r'''function() { throw 'Helper \'closureFromTearOff\' missing.' }''';
+ r'''function() { throw "Helper 'closureFromTearOff' missing." }''';
tearOffAccessExpression = js(tearOffAccessText);
tearOffGlobalObjectName = 'MissingHelperFunction';
tearOffGlobalObject = '($tearOffAccessText())';
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/js_lib/core_patch.dart » ('j') | sdk/lib/_internal/compiler/js_lib/core_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698