| Index: lib/compiler/implementation/apiimpl.dart
|
| diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
|
| index 0064d06235a0abe25958284120fe437a80fa25cd..5d7296edf213e9190ea1d205bbd5d5fec985088c 100644
|
| --- a/lib/compiler/implementation/apiimpl.dart
|
| +++ b/lib/compiler/implementation/apiimpl.dart
|
| @@ -24,7 +24,9 @@ class Compiler extends leg.Compiler {
|
|
|
| Compiler(this.provider, this.handler, this.libraryRoot, this.options)
|
| : super(tracer: new ssa.HTracer()) {
|
| - enableTypeAssertions = options.indexOf('--enable-checked-mode') !== -1;
|
| + enableTypeAssertions = options.indexOf('--enable-checked-mode') != -1;
|
| + backend = options.indexOf('--2dart') != -1 ?
|
| + new leg.DartBackend(this) : new leg.JavaScriptBackend(this);
|
| }
|
|
|
| elements.LibraryElement scanBuiltinLibrary(String path) {
|
|
|