| Index: sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart (revision 23244)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/invoke_dynamic_specializers.dart (working copy)
|
| @@ -100,6 +100,10 @@
|
| HInstruction tryConvertToBuiltin(HInvokeDynamic instruction,
|
| Compiler compiler) {
|
| if (instruction.inputs[1].isMutableIndexable(compiler)) {
|
| + if (!instruction.inputs[2].isInteger() && compiler.enableTypeAssertions) {
|
| + // We want the right checked mode error.
|
| + return null;
|
| + }
|
| return new HIndexAssign(instruction.inputs[1],
|
| instruction.inputs[2],
|
| instruction.inputs[3],
|
| @@ -130,6 +134,10 @@
|
| HInstruction tryConvertToBuiltin(HInvokeDynamic instruction,
|
| Compiler compiler) {
|
| if (instruction.inputs[1].isIndexable(compiler)) {
|
| + if (!instruction.inputs[2].isInteger() && compiler.enableTypeAssertions) {
|
| + // We want the right checked mode error.
|
| + return null;
|
| + }
|
| HInstruction index = new HIndex(
|
| instruction.inputs[1], instruction.inputs[2], instruction.selector);
|
| index.instructionType =
|
|
|