| Index: tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
|
| diff --git a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
|
| index 18aa0c52aa30912733722fd6c0f2e4f78b50e86d..7b5e98743ed69ccbc54ce676e2438bb1b1a8f802 100644
|
| --- a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
|
| +++ b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
|
| @@ -43,6 +43,35 @@ main() { print(foo || foo); }""",
|
| P.print(P.identical(V.foo(), true) || P.identical(V.foo(), true));
|
| return null;
|
| }"""),
|
| +
|
| +// Needs interceptor calling convention
|
| +//const TestEntry("""
|
| +//class Foo {
|
| +// operator[]=(index, value) {
|
| +// print(value);
|
| +// }
|
| +//}
|
| +//main() {
|
| +// var foo = new Foo();
|
| +// foo[5] = 6;
|
| +//}""", r"""
|
| +//function() {
|
| +// V.Foo$().$indexSet(5, 6);
|
| +//}
|
| +//"""),
|
| +
|
| +const TestEntry("""
|
| +main() {
|
| + var list = [1, 2, 3];
|
| + list[1] = 6;
|
| + print(list);
|
| +}""", r"""
|
| +function() {
|
| + var list = [1, 2, 3];
|
| + J.getInterceptor$a(list).$indexSet(list, 1, 6);
|
| + P.print(list);
|
| + return null;
|
| +}"""),
|
| ];
|
|
|
| void main() {
|
|
|