| Index: lib/compiler/implementation/apiimpl.dart
|
| diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
|
| index 0064d06235a0abe25958284120fe437a80fa25cd..2d59e644613aab356e9dbba658e097f3a5e8ae4b 100644
|
| --- a/lib/compiler/implementation/apiimpl.dart
|
| +++ b/lib/compiler/implementation/apiimpl.dart
|
| @@ -22,10 +22,12 @@ class Compiler extends leg.Compiler {
|
| List<String> options;
|
| bool mockableLibraryUsed = false;
|
|
|
| - Compiler(this.provider, this.handler, this.libraryRoot, this.options)
|
| - : super(tracer: new ssa.HTracer()) {
|
| - enableTypeAssertions = options.indexOf('--enable-checked-mode') !== -1;
|
| - }
|
| + Compiler(this.provider, this.handler, this.libraryRoot, List<String> options)
|
| + : this.options = options,
|
| + super(
|
| + tracer: new ssa.HTracer(),
|
| + enableTypeAssertions: options.indexOf('--enable-checked-mode') != -1,
|
| + emitJavascript: options.indexOf('--output-type=dart') == -1);
|
|
|
| elements.LibraryElement scanBuiltinLibrary(String path) {
|
| Uri uri = libraryRoot.resolve(DART2JS_LIBRARY_MAP[path]);
|
|
|