@@ -9,7 +9,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
99 it ( 'should load exports' , async ( ) => {
1010 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
1111 '--no-warnings' ,
12- '--experimental-wasm-modules' ,
1312 '--input-type=module' ,
1413 '--eval' ,
1514 [
@@ -32,7 +31,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
3231 it ( 'should not allow code injection through export names' , async ( ) => {
3332 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
3433 '--no-warnings' ,
35- '--experimental-wasm-modules' ,
3634 '--input-type=module' ,
3735 '--eval' ,
3836 `import * as wasmExports from ${ JSON . stringify ( fixtures . fileURL ( 'es-modules/export-name-code-injection.wasm' ) ) } ;` ,
@@ -46,7 +44,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
4644 it ( 'should allow non-identifier export names' , async ( ) => {
4745 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
4846 '--no-warnings' ,
49- '--experimental-wasm-modules' ,
5047 '--input-type=module' ,
5148 '--eval' ,
5249 [
@@ -64,7 +61,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
6461 it ( 'should properly handle all WebAssembly global types' , async ( ) => {
6562 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
6663 '--no-warnings' ,
67- '--experimental-wasm-modules' ,
6864 '--input-type=module' ,
6965 '--eval' ,
7066 [
@@ -211,7 +207,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
211207 it ( 'should properly escape import names as well' , async ( ) => {
212208 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
213209 '--no-warnings' ,
214- '--experimental-wasm-modules' ,
215210 '--input-type=module' ,
216211 '--eval' ,
217212 [
@@ -226,22 +221,20 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
226221 strictEqual ( code , 0 ) ;
227222 } ) ;
228223
229- it ( 'should emit experimental warning' , async ( ) => {
224+ it ( 'should emit experimental warning for module instances ' , async ( ) => {
230225 const { code, signal, stderr } = await spawnPromisified ( execPath , [
231- '--experimental-wasm-modules' ,
232226 fixtures . path ( 'es-modules/wasm-modules.mjs' ) ,
233227 ] ) ;
234228
235229 strictEqual ( code , 0 ) ;
236230 strictEqual ( signal , null ) ;
237231 match ( stderr , / E x p e r i m e n t a l W a r n i n g / ) ;
238- match ( stderr , / W e b A s s e m b l y / ) ;
232+ match ( stderr , / I m p o r t i n g W e b A s s e m b l y m o d u l e i n s t a n c e s / ) ;
239233 } ) ;
240234
241235 it ( 'should support top-level execution' , async ( ) => {
242236 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
243237 '--no-warnings' ,
244- '--experimental-wasm-modules' ,
245238 fixtures . path ( 'es-modules/top-level-wasm.wasm' ) ,
246239 ] ) ;
247240
@@ -254,7 +247,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
254247 it . skip ( 'should support static source phase imports' , async ( ) => {
255248 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
256249 '--no-warnings' ,
257- '--experimental-wasm-modules' ,
258250 '--input-type=module' ,
259251 '--eval' ,
260252 [
@@ -276,7 +268,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
276268 it . skip ( 'should support dynamic source phase imports' , async ( ) => {
277269 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
278270 '--no-warnings' ,
279- '--experimental-wasm-modules' ,
280271 '--input-type=module' ,
281272 '--eval' ,
282273 [
@@ -299,7 +290,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
299290 it . skip ( 'should not execute source phase imports' , async ( ) => {
300291 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
301292 '--no-warnings' ,
302- '--experimental-wasm-modules' ,
303293 '--input-type=module' ,
304294 '--eval' ,
305295 [
@@ -319,7 +309,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
319309 it . skip ( 'should not execute dynamic source phase imports' , async ( ) => {
320310 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
321311 '--no-warnings' ,
322- '--experimental-wasm-modules' ,
323312 '--input-type=module' ,
324313 '--eval' ,
325314 `await import.source(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/unimportable.wasm' ) ) } )` ,
@@ -335,7 +324,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
335324 const fileUrl = fixtures . fileURL ( 'es-modules/wasm-source-phase.js' ) ;
336325 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
337326 '--no-warnings' ,
338- '--experimental-wasm-modules' ,
339327 '--input-type=module' ,
340328 '--eval' ,
341329 [
@@ -358,7 +346,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
358346 const fileUrl = fixtures . fileURL ( 'es-modules/wasm-source-phase.js' ) ;
359347 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
360348 '--no-warnings' ,
361- '--experimental-wasm-modules' ,
362349 '--input-type=module' ,
363350 '--eval' ,
364351 `import source nosource from ${ JSON . stringify ( fileUrl ) } ;` ,
@@ -373,7 +360,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
373360 it . skip ( 'should throw for vm source phase static import' , async ( ) => {
374361 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
375362 '--no-warnings' ,
376- '--experimental-wasm-modules' ,
377363 '--experimental-vm-modules' ,
378364 '--input-type=module' ,
379365 '--eval' ,
@@ -393,7 +379,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
393379 it . skip ( 'should throw for vm source phase dynamic import' , async ( ) => {
394380 const { code, stderr, stdout } = await spawnPromisified ( execPath , [
395381 '--no-warnings' ,
396- '--experimental-wasm-modules' ,
397382 '--experimental-vm-modules' ,
398383 '--input-type=module' ,
399384 '--eval' ,
0 commit comments