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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 285903006: Fix main handling in dart2js and add tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status Created 6 years, 5 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 4e2e8f82214038e1aa05ce4ecbab91a8b7abc853..002e0edba4b9bee0dcf76ece3f4bc9bcdbafadc8 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -2104,6 +2104,14 @@ class JavaScriptBackend extends Backend {
? jsAst.prettyPrint(generatedCode[element], compiler)
: null;
}
+
+ FunctionElement helperForBadMain() => findHelper('badMain');
+
+ FunctionElement helperForMissingMain() => findHelper('missingMain');
+
+ FunctionElement helperForMainArity() {
+ return findHelper('mainHasTooManyParameters');
+ }
}
class JavaScriptionResolutionCallbacks extends ResolutionCallbacks {

Powered by Google App Engine
This is Rietveld 408576698