| Index: pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
|
| index 8852d1f46126b80edf0858457ac055766e77794e..9e03bb99fbec03cae1d6771f28158af577d5695c 100644
|
| --- a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
|
| +++ b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
|
| @@ -98,7 +98,7 @@ class IndexAssignSpecializer extends InvokeDynamicSpecializer {
|
| Compiler compiler) {
|
| if (instruction.inputs[1].isMutableIndexable(compiler)) {
|
| if (!instruction.inputs[2].isInteger(compiler)
|
| - && compiler.enableTypeAssertions) {
|
| + && compiler.options.enableTypeAssertions) {
|
| // We want the right checked mode error.
|
| return null;
|
| }
|
| @@ -118,7 +118,7 @@ class IndexSpecializer extends InvokeDynamicSpecializer {
|
| Compiler compiler) {
|
| if (!instruction.inputs[1].isIndexablePrimitive(compiler)) return null;
|
| if (!instruction.inputs[2].isInteger(compiler)
|
| - && compiler.enableTypeAssertions) {
|
| + && compiler.options.enableTypeAssertions) {
|
| // We want the right checked mode error.
|
| return null;
|
| }
|
|
|