| Index: lib/compiler/implementation/compiler.dart
|
| diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
|
| index b89a90d7d420bab51807249114293add746965fb..3ace0dbe395d830b3252095c5c284974d9a0e8c0 100644
|
| --- a/lib/compiler/implementation/compiler.dart
|
| +++ b/lib/compiler/implementation/compiler.dart
|
| @@ -201,6 +201,7 @@ abstract class Compiler implements DiagnosticListener {
|
| this.enableMinification: false,
|
| bool emitJavaScript: true,
|
| bool generateSourceMap: true,
|
| + bool disallowUnsafeEval: false,
|
| List<String> strips: const []})
|
| : libraries = new Map<String, LibraryElement>(),
|
| progress = new Stopwatch() {
|
| @@ -217,7 +218,9 @@ abstract class Compiler implements DiagnosticListener {
|
| checker = new TypeCheckerTask(this);
|
| typesTask = new ti.TypesTask(this, enableConcreteTypeInference);
|
| backend = emitJavaScript ?
|
| - new js_backend.JavaScriptBackend(this, generateSourceMap) :
|
| + new js_backend.JavaScriptBackend(this,
|
| + generateSourceMap,
|
| + disallowUnsafeEval) :
|
| new dart_backend.DartBackend(this, strips);
|
| constantHandler = new ConstantHandler(this, backend.constantSystem);
|
| enqueuer = new EnqueueTask(this);
|
|
|