| Index: third_party/pkg/js/lib/src/wrapping/util.dart
|
| diff --git a/tests/compiler/dart2js_native/call_on_native_class_test.dart b/third_party/pkg/js/lib/src/wrapping/util.dart
|
| similarity index 63%
|
| copy from tests/compiler/dart2js_native/call_on_native_class_test.dart
|
| copy to third_party/pkg/js/lib/src/wrapping/util.dart
|
| index 3b07cf6be0192d8daa41c4c37c37d0909127cd67..d658cbecee1f668cbf57c74475565c9ebb2f58ab 100644
|
| --- a/tests/compiler/dart2js_native/call_on_native_class_test.dart
|
| +++ b/third_party/pkg/js/lib/src/wrapping/util.dart
|
| @@ -2,13 +2,8 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -class A native '*A' {
|
| -}
|
| +part of js.wrapping;
|
|
|
| -class B extends A{
|
| - call() => 42;
|
| -}
|
| +typedef T Mapper<F,T>(F o);
|
|
|
| -main() {
|
| - new B()();
|
| -}
|
| +dynamic mapNotNull(dynamic o, Mapper mapper) => o != null ? mapper(o) : null;
|
|
|