@@ -77,55 +77,55 @@ class A {
7777class B extends A {
7878 // async method with only call/get on 'super' does not require a binding
7979 simple ( ) {
80- const _super_1 = name => super [ name ] ;
81- const _superProps_1 = Object . create ( null , {
80+ const _superIndex = name => super [ name ] ;
81+ const _super_1 = Object . create ( null , {
8282 x : { get : ( ) => super . x } ,
8383 y : { get : ( ) => super . y }
8484 } ) ;
8585 return __awaiter ( this , void 0 , void 0 , function * ( ) {
8686 const _super = null ;
8787 const _superProps = null ;
8888 // call with property access
89- _superProps_1 . x . call ( this ) ;
89+ _super_1 . x . call ( this ) ;
9090 // call additional property.
91- _superProps_1 . y . call ( this ) ;
91+ _super_1 . y . call ( this ) ;
9292 // call with element access
93- _super_1 ( "x" ) . call ( this ) ;
93+ _superIndex ( "x" ) . call ( this ) ;
9494 // property access (read)
95- const a = _superProps_1 . x ;
95+ const a = _super_1 . x ;
9696 // element access (read)
97- const b = _super_1 ( "x" ) ;
97+ const b = _superIndex ( "x" ) ;
9898 } ) ;
9999 }
100100 // async method with assignment/destructuring on 'super' requires a binding
101101 advanced ( ) {
102- const _super_1 = ( function ( geti , seti ) {
102+ const _superIndex = ( function ( geti , seti ) {
103103 const cache = Object . create ( null ) ;
104104 return name => cache [ name ] || ( cache [ name ] = { get value ( ) { return geti ( name ) ; } , set value ( v ) { seti ( name , v ) ; } } ) ;
105105 } ) ( name => super [ name ] , ( name , value ) => super [ name ] = value ) ;
106- const _superProps_1 = Object . create ( null , {
106+ const _super_1 = Object . create ( null , {
107107 x : { get : ( ) => super . x , set : v => super . x = v }
108108 } ) ;
109109 return __awaiter ( this , void 0 , void 0 , function * ( ) {
110110 const _super = null ;
111111 const _superProps = null ;
112112 const f = ( ) => { } ;
113113 // call with property access
114- _superProps_1 . x . call ( this ) ;
114+ _super_1 . x . call ( this ) ;
115115 // call with element access
116- _super_1 ( "x" ) . value . call ( this ) ;
116+ _superIndex ( "x" ) . value . call ( this ) ;
117117 // property access (read)
118- const a = _superProps_1 . x ;
118+ const a = _super_1 . x ;
119119 // element access (read)
120- const b = _super_1 ( "x" ) . value ;
120+ const b = _superIndex ( "x" ) . value ;
121121 // property access (assign)
122- _superProps_1 . x = f ;
122+ _super_1 . x = f ;
123123 // element access (assign)
124- _super_1 ( "x" ) . value = f ;
124+ _superIndex ( "x" ) . value = f ;
125125 // destructuring assign with property access
126- ( { f : _superProps_1 . x } = { f } ) ;
126+ ( { f : _super_1 . x } = { f } ) ;
127127 // destructuring assign with element access
128- ( { f : _super_1 ( "x" ) . value } = { f } ) ;
128+ ( { f : _superIndex ( "x" ) . value } = { f } ) ;
129129 } ) ;
130130 }
131131}
0 commit comments