Allow main to be null for modular tranformation.
R=asgerf@google.com Review-Url: https://codereview.chromium.org/2612873005 .
This commit is contained in:
@@ -13,6 +13,8 @@ Program transformProgram(Program program,
|
||||
{String libraryUri: 'dart:_builtin'}) {
|
||||
Procedure mainMethod = program.mainMethod;
|
||||
|
||||
if (mainMethod == null) return program;
|
||||
|
||||
Library builtinLibrary;
|
||||
for (Library library in program.libraries) {
|
||||
if (library.importUri.toString() == libraryUri) {
|
||||
|
||||
Reference in New Issue
Block a user