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 {
950
950
/** Lifts a WebAssembly value to a JavaScript value. */
951
951
makeLiftFromValue ( name : string , type : Type , sb : string [ ] = this . sb ) : void {
952
952
if ( type . isInternalReference ) {
953
- const clazz = assert ( type . getClass ( ) ) ;
953
+ const clazz = assert ( type . getClassOrWrapper ( this . program ) ) ;
954
954
if ( clazz . extends ( this . program . arrayBufferInstance . prototype ) ) {
955
955
sb . push ( "__liftBuffer(" ) ;
956
956
this . needsLiftBuffer = true ;
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export class TSDBuilder extends ExportsWalker {
236
236
toTypeScriptType ( type : Type , mode : Mode ) : string {
237
237
if ( type . isInternalReference ) {
238
238
const sb = new Array < string > ( ) ;
239
- const clazz = assert ( type . getClass ( ) ) ;
239
+ const clazz = assert ( type . getClassOrWrapper ( this . program ) ) ;
240
240
if ( clazz . extends ( this . program . arrayBufferInstance . prototype ) ) {
241
241
sb . push ( "ArrayBuffer" ) ;
242
242
} else if ( clazz . extends ( this . program . stringInstance . prototype ) ) {
You can’t perform that action at this time.
0 commit comments