Index: test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart |
diff --git a/test/codegen/language/call_function_apply_test.dart b/test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart |
similarity index 50% |
copy from test/codegen/language/call_function_apply_test.dart |
copy to test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart |
index 935cfaf832aff599478847534822d651a4ddcd51..4b5d31ceed6e83aa338bcf7ce481453939868569 100644 |
--- a/test/codegen/language/call_function_apply_test.dart |
+++ b/test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart |
@@ -3,13 +3,14 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import 'dart:typed_data'; |
-class A { |
- call({a: 42}) { |
- return 499 + a; |
- } |
-} |
+@NoInline() |
+use(s) => s; |
main() { |
- Expect.equals(497, Function.apply(new A(), [], {#a: -2})); |
+ // In dart2js ByteData should have an interceptor so that it doesn't end up |
+ // as an unknown JS object. |
+ // This test is just to make sure that dart2js doesn't crash. |
+ use(new ByteData(1).toString()); |
} |