mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 08:51:21 +00:00
Fix build break.
BUG= R=jmesserly@google.com Review URL: https://codereview.chromium.org/2346573002 .
This commit is contained in:
parent
866e4ea550
commit
d858c4f2ae
|
@ -170,7 +170,7 @@ void _writeModule(String outPath, String expectPath, ModuleFormat format,
|
|||
if (errors.isNotEmpty && !errors.endsWith('\n')) errors += '\n';
|
||||
new File(outPath + '.txt').writeAsStringSync(errors);
|
||||
|
||||
result.writeCodeSync(format, outPath + '.js');
|
||||
result.writeCodeSync(format, false, outPath + '.js');
|
||||
|
||||
if (result.summaryBytes != null) {
|
||||
new File(outPath + '.sum').writeAsBytesSync(result.summaryBytes);
|
||||
|
@ -184,7 +184,7 @@ void _writeModule(String outPath, String expectPath, ModuleFormat format,
|
|||
|
||||
var expectFile = new File(expectPath + '.js');
|
||||
if (result.isValid) {
|
||||
result.writeCodeSync(format, expectFile.path);
|
||||
result.writeCodeSync(format, false, expectFile.path);
|
||||
} else {
|
||||
expectFile.writeAsStringSync("//FAILED TO COMPILE");
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ class WebCompileCommand extends Command {
|
|||
|
||||
var moduleCode = module.isValid
|
||||
? module
|
||||
.getCode(ModuleFormat.legacy, unit.name, unit.name + '.map')
|
||||
.getCode(ModuleFormat.legacy, false, unit.name, unit.name + '.map')
|
||||
.code
|
||||
: '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue