@@ -459,7 +459,7 @@ translators.set('wasm', async function(url, source) {
459459// Strategy for loading a commonjs TypeScript module
460460translators . set ( 'commonjs-typescript' , function ( url , source ) {
461461 emitExperimentalWarning ( 'Type Stripping' ) ;
462- assertBufferSource ( source , false , 'load' ) ;
462+ assertBufferSource ( source , true , 'load' ) ;
463463 const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
464464 debug ( `Translating TypeScript ${ url } ` ) ;
465465 return FunctionPrototypeCall ( translators . get ( 'commonjs' ) , this , url , code , false ) ;
@@ -468,7 +468,7 @@ translators.set('commonjs-typescript', function(url, source) {
468468// Strategy for loading an esm TypeScript module
469469translators . set ( 'module-typescript' , function ( url , source ) {
470470 emitExperimentalWarning ( 'Type Stripping' ) ;
471- assertBufferSource ( source , false , 'load' ) ;
471+ assertBufferSource ( source , true , 'load' ) ;
472472 const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
473473 debug ( `Translating TypeScript ${ url } ` ) ;
474474 return FunctionPrototypeCall ( translators . get ( 'module' ) , this , url , code , false ) ;
0 commit comments