| Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
|
| index 0550d8d1002f1e624c5b93a764b02d629d0f3771..9bb14173935072bc250e33954a1f2f295e9aa996 100644
|
| --- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
|
| @@ -105,7 +105,7 @@ class ConstantEmitter
|
| // digits are lost anyway.
|
| String representation = primitiveValue.toString();
|
| String alternative = null;
|
| - int cutoff = compiler.enableMinification ? 10000 : 1e10.toInt();
|
| + int cutoff = compiler.options.enableMinification ? 10000 : 1e10.toInt();
|
| if (primitiveValue.abs() >= cutoff) {
|
| alternative = _shortenExponentialRepresentation(
|
| primitiveValue.toStringAsExponential());
|
| @@ -133,7 +133,7 @@ class ConstantEmitter
|
|
|
| @override
|
| jsAst.Expression visitBool(BoolConstantValue constant, [_]) {
|
| - if (compiler.enableMinification) {
|
| + if (compiler.options.enableMinification) {
|
| if (constant.isTrue) {
|
| // Use !0 for true.
|
| return js("!0");
|
|
|