| Index: third_party/pkg/js/lib/src/wrapping/typed_proxy.dart
|
| diff --git a/third_party/pkg/js/lib/src/wrapping/typed_proxy.dart b/third_party/pkg/js/lib/src/wrapping/typed_proxy.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cca120d435a6fdcfba2402e7600a4af17e96125f
|
| --- /dev/null
|
| +++ b/third_party/pkg/js/lib/src/wrapping/typed_proxy.dart
|
| @@ -0,0 +1,18 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
| +part of js.wrapping;
|
| +
|
| +/// base class to wrap a [Proxy] in a strong typed object.
|
| +class TypedProxy implements Serializable<Proxy> {
|
| + final Proxy $unsafe;
|
| +
|
| + TypedProxy([Serializable<FunctionProxy> function, List args])
|
| + : this.fromProxy(new Proxy.withArgList(
|
| + function != null ? function : context.Object,
|
| + args != null ? args : []));
|
| + TypedProxy.fromProxy(this.$unsafe);
|
| +
|
| + @override dynamic toJs() => $unsafe;
|
| +}
|
|
|