@@ -459,7 +459,7 @@ translators.set('wasm', async function(url, source) {
459
459
// Strategy for loading a commonjs TypeScript module
460
460
translators . set ( 'commonjs-typescript' , function ( url , source ) {
461
461
emitExperimentalWarning ( 'Type Stripping' ) ;
462
- assertBufferSource ( source , false , 'load' ) ;
462
+ assertBufferSource ( source , true , 'load' ) ;
463
463
const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
464
464
debug ( `Translating TypeScript ${ url } ` ) ;
465
465
return FunctionPrototypeCall ( translators . get ( 'commonjs' ) , this , url , code , false ) ;
@@ -468,7 +468,7 @@ translators.set('commonjs-typescript', function(url, source) {
468
468
// Strategy for loading an esm TypeScript module
469
469
translators . set ( 'module-typescript' , function ( url , source ) {
470
470
emitExperimentalWarning ( 'Type Stripping' ) ;
471
- assertBufferSource ( source , false , 'load' ) ;
471
+ assertBufferSource ( source , true , 'load' ) ;
472
472
const code = stripTypeScriptTypes ( stringify ( source ) , url ) ;
473
473
debug ( `Translating TypeScript ${ url } ` ) ;
474
474
return FunctionPrototypeCall ( translators . get ( 'module' ) , this , url , code , false ) ;
0 commit comments