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

Unified Diff: sdk/lib/_internal/lib/isolate_helper.dart

Issue 169283007: Revert "Allow to intercept arguments to main with dartMainRunner." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/lib/isolate_helper.dart
diff --git a/sdk/lib/_internal/lib/isolate_helper.dart b/sdk/lib/_internal/lib/isolate_helper.dart
index e647b9632ca5349369c84eb71174e5402865a25c..2a8968561340e7783fdd86a0f843c0e3ea400f85 100644
--- a/sdk/lib/_internal/lib/isolate_helper.dart
+++ b/sdk/lib/_internal/lib/isolate_helper.dart
@@ -70,8 +70,7 @@ _IsolateContext _currentIsolate() => _globalState.currentContext;
* is needed. For single-isolate applications (e.g. hello world), this
* call is not emitted.
*/
-void startRootIsolate(entry, args) {
- if (args == null) args = [];
+void startRootIsolate(entry) {
_globalState = new _Manager(entry);
// Don't start the main loop again, if we are in a worker.
@@ -86,9 +85,9 @@ void startRootIsolate(entry, args) {
_globalState.currentContext = rootContext;
if (entry is _MainFunctionArgs) {
- rootContext.eval(() { entry(args); });
+ rootContext.eval(() { entry([]); });
} else if (entry is _MainFunctionArgsMessage) {
- rootContext.eval(() { entry(args, null); });
+ rootContext.eval(() { entry([], null); });
} else {
rootContext.eval(entry);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/declarations.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698