File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ export function CONST() {
4545
4646export class ABSTRACT { }
4747
48- export class IMPLEMENTS { }
48+ // Note: This is only a marker annotation needed for ts2dart.
49+ // This is written so that is can be used as a Traceur annotation
50+ // or a Typescript decorator.
51+ export function IMPLEMENTS ( _ ) {
52+ return ( t ) => t ;
53+ }
4954
5055export function isPresent ( obj ) : boolean {
5156 return obj !== undefined && obj !== null ;
Original file line number Diff line number Diff line change @@ -299,6 +299,9 @@ export class SpyObject {
299299 }
300300 }
301301 }
302+ // Noop so that SpyObject has the smae interface as in Dart
303+ noSuchMethod ( args ) { }
304+
302305 spy ( name ) {
303306 if ( ! this [ name ] ) {
304307 this [ name ] = this . _createGuinnessCompatibleSpy ( name ) ;
You can’t perform that action at this time.
0 commit comments