File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ export class JSBuilder extends ExportsWalker {
950950 /** Lifts a WebAssembly value to a JavaScript value. */
951951 makeLiftFromValue ( name : string , type : Type , sb : string [ ] = this . sb ) : void {
952952 if ( type . isInternalReference ) {
953- const clazz = assert ( type . getClass ( ) ) ;
953+ const clazz = assert ( type . getClassOrWrapper ( this . program ) ) ;
954954 if ( clazz . extends ( this . program . arrayBufferInstance . prototype ) ) {
955955 sb . push ( "__liftBuffer(" ) ;
956956 this . needsLiftBuffer = true ;
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export class TSDBuilder extends ExportsWalker {
236236 toTypeScriptType ( type : Type , mode : Mode ) : string {
237237 if ( type . isInternalReference ) {
238238 const sb = new Array < string > ( ) ;
239- const clazz = assert ( type . getClass ( ) ) ;
239+ const clazz = assert ( type . getClassOrWrapper ( this . program ) ) ;
240240 if ( clazz . extends ( this . program . arrayBufferInstance . prototype ) ) {
241241 sb . push ( "ArrayBuffer" ) ;
242242 } else if ( clazz . extends ( this . program . stringInstance . prototype ) ) {
You can’t perform that action at this time.
0 commit comments