@@ -9,7 +9,7 @@ function noAssetLoading() {
99 throw new Error ( "The inline build must not load a companion asset" ) ;
1010}
1111
12- async function testBrowserBuild ( file , deprecated ) {
12+ async function testBrowserBuild ( file ) {
1313 const warnings = [ ] ;
1414 const messages = [ ] ;
1515 const worker = file . startsWith ( "worker." ) ;
@@ -51,14 +51,7 @@ async function testBrowserBuild(file, deprecated) {
5151 await context . self . onmessage ( { data : { id : 3 , action : "close" } } ) ;
5252 }
5353
54- if ( deprecated ) {
55- assert . equal ( warnings . length , 1 , "Warn once when initializing a deprecated build" ) ;
56- assert . match ( warnings [ 0 ] , / a s m \. j s b u i l d i s d e p r e c a t e d / ) ;
57- assert . match ( warnings [ 0 ] , / s q l - w a s m - i n l i n e \. j s / ) ;
58- assert . match ( warnings [ 0 ] , / h t t p s : \/ \/ g i t h u b \. c o m \/ s q l - j s \/ s q l \. j s \/ i s s u e s \/ 6 3 5 / ) ;
59- } else {
60- assert . equal ( warnings . length , 0 , "WebAssembly builds do not warn" ) ;
61- }
54+ assert . equal ( warnings . length , 0 , "WebAssembly builds do not warn" ) ;
6255 console . log ( "OK browser distribution " + file ) ;
6356}
6457
@@ -91,14 +84,8 @@ async function main() {
9184 const file = "sql-wasm-inline" + suffix + ".js" ;
9285 assert . equal ( fs . existsSync ( path . join ( __dirname , "../dist" , "sql-wasm-inline" + suffix + ".wasm" ) ) , false ) ;
9386 testIsolatedNodeBuild ( file ) ;
94- await testBrowserBuild ( file , false ) ;
95- await testBrowserBuild ( "worker." + file , false ) ;
96- }
97- for ( const file of [
98- "sql-asm.js" , "sql-asm-debug.js" , "sql-asm-memory-growth.js" ,
99- "worker.sql-asm.js" , "worker.sql-asm-debug.js"
100- ] ) {
101- await testBrowserBuild ( file , true ) ;
87+ await testBrowserBuild ( file ) ;
88+ await testBrowserBuild ( "worker." + file ) ;
10289 }
10390}
10491
0 commit comments