Index: dart/runtime/bin/builtin.dart |
=================================================================== |
--- dart/runtime/bin/builtin.dart (revision 29808) |
+++ dart/runtime/bin/builtin.dart (working copy) |
@@ -4,7 +4,14 @@ |
library builtin; |
import 'dart:io'; |
+// import 'root_library'; happens here from C Code |
+// The root library (aka the script) is imported into this library. The |
+// standalone embedder uses this to lookup the main entrypoint in the |
+// root library's namespace. |
+Function _getMainClosure() => main; |
+ |
+ |
// Corelib 'print' implementation. |
void _print(arg) { |
_Logger._printString(arg.toString()); |