@@ -9,7 +9,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
9
9
it ( 'should load exports' , async ( ) => {
10
10
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
11
11
'--no-warnings' ,
12
- '--experimental-wasm-modules' ,
13
12
'--input-type=module' ,
14
13
'--eval' ,
15
14
[
@@ -32,7 +31,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
32
31
it ( 'should not allow code injection through export names' , async ( ) => {
33
32
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
34
33
'--no-warnings' ,
35
- '--experimental-wasm-modules' ,
36
34
'--input-type=module' ,
37
35
'--eval' ,
38
36
`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 }, () =>
46
44
it ( 'should allow non-identifier export names' , async ( ) => {
47
45
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
48
46
'--no-warnings' ,
49
- '--experimental-wasm-modules' ,
50
47
'--input-type=module' ,
51
48
'--eval' ,
52
49
[
@@ -64,7 +61,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
64
61
it ( 'should properly handle all WebAssembly global types' , async ( ) => {
65
62
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
66
63
'--no-warnings' ,
67
- '--experimental-wasm-modules' ,
68
64
'--input-type=module' ,
69
65
'--eval' ,
70
66
[
@@ -211,7 +207,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
211
207
it ( 'should properly escape import names as well' , async ( ) => {
212
208
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
213
209
'--no-warnings' ,
214
- '--experimental-wasm-modules' ,
215
210
'--input-type=module' ,
216
211
'--eval' ,
217
212
[
@@ -226,22 +221,20 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
226
221
strictEqual ( code , 0 ) ;
227
222
} ) ;
228
223
229
- it ( 'should emit experimental warning' , async ( ) => {
224
+ it ( 'should emit experimental warning for module instances ' , async ( ) => {
230
225
const { code, signal, stderr } = await spawnPromisified ( execPath , [
231
- '--experimental-wasm-modules' ,
232
226
fixtures . path ( 'es-modules/wasm-modules.mjs' ) ,
233
227
] ) ;
234
228
235
229
strictEqual ( code , 0 ) ;
236
230
strictEqual ( signal , null ) ;
237
231
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 / ) ;
239
233
} ) ;
240
234
241
235
it ( 'should support top-level execution' , async ( ) => {
242
236
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
243
237
'--no-warnings' ,
244
- '--experimental-wasm-modules' ,
245
238
fixtures . path ( 'es-modules/top-level-wasm.wasm' ) ,
246
239
] ) ;
247
240
@@ -254,7 +247,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
254
247
it . skip ( 'should support static source phase imports' , async ( ) => {
255
248
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
256
249
'--no-warnings' ,
257
- '--experimental-wasm-modules' ,
258
250
'--input-type=module' ,
259
251
'--eval' ,
260
252
[
@@ -276,7 +268,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
276
268
it . skip ( 'should support dynamic source phase imports' , async ( ) => {
277
269
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
278
270
'--no-warnings' ,
279
- '--experimental-wasm-modules' ,
280
271
'--input-type=module' ,
281
272
'--eval' ,
282
273
[
@@ -299,7 +290,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
299
290
it . skip ( 'should not execute source phase imports' , async ( ) => {
300
291
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
301
292
'--no-warnings' ,
302
- '--experimental-wasm-modules' ,
303
293
'--input-type=module' ,
304
294
'--eval' ,
305
295
[
@@ -319,7 +309,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
319
309
it . skip ( 'should not execute dynamic source phase imports' , async ( ) => {
320
310
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
321
311
'--no-warnings' ,
322
- '--experimental-wasm-modules' ,
323
312
'--input-type=module' ,
324
313
'--eval' ,
325
314
`await import.source(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/unimportable.wasm' ) ) } )` ,
@@ -335,7 +324,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
335
324
const fileUrl = fixtures . fileURL ( 'es-modules/wasm-source-phase.js' ) ;
336
325
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
337
326
'--no-warnings' ,
338
- '--experimental-wasm-modules' ,
339
327
'--input-type=module' ,
340
328
'--eval' ,
341
329
[
@@ -358,7 +346,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
358
346
const fileUrl = fixtures . fileURL ( 'es-modules/wasm-source-phase.js' ) ;
359
347
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
360
348
'--no-warnings' ,
361
- '--experimental-wasm-modules' ,
362
349
'--input-type=module' ,
363
350
'--eval' ,
364
351
`import source nosource from ${ JSON . stringify ( fileUrl ) } ;` ,
@@ -373,7 +360,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
373
360
it . skip ( 'should throw for vm source phase static import' , async ( ) => {
374
361
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
375
362
'--no-warnings' ,
376
- '--experimental-wasm-modules' ,
377
363
'--experimental-vm-modules' ,
378
364
'--input-type=module' ,
379
365
'--eval' ,
@@ -393,7 +379,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
393
379
it . skip ( 'should throw for vm source phase dynamic import' , async ( ) => {
394
380
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
395
381
'--no-warnings' ,
396
- '--experimental-wasm-modules' ,
397
382
'--experimental-vm-modules' ,
398
383
'--input-type=module' ,
399
384
'--eval' ,
@@ -414,7 +399,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
414
399
it ( 'should reject wasm: import names' , async ( ) => {
415
400
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
416
401
'--no-warnings' ,
417
- '--experimental-wasm-modules' ,
418
402
'--input-type=module' ,
419
403
'--eval' ,
420
404
`import(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/invalid-import-name.wasm' ) ) } )` ,
@@ -428,7 +412,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
428
412
it ( 'should reject wasm-js: import names' , async ( ) => {
429
413
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
430
414
'--no-warnings' ,
431
- '--experimental-wasm-modules' ,
432
415
'--input-type=module' ,
433
416
'--eval' ,
434
417
`import(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/invalid-import-name-wasm-js.wasm' ) ) } )` ,
@@ -442,7 +425,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
442
425
it ( 'should reject wasm-js: import module names' , async ( ) => {
443
426
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
444
427
'--no-warnings' ,
445
- '--experimental-wasm-modules' ,
446
428
'--input-type=module' ,
447
429
'--eval' ,
448
430
`import(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/invalid-import-module.wasm' ) ) } )` ,
@@ -456,7 +438,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
456
438
it ( 'should reject wasm: export names' , async ( ) => {
457
439
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
458
440
'--no-warnings' ,
459
- '--experimental-wasm-modules' ,
460
441
'--input-type=module' ,
461
442
'--eval' ,
462
443
`import(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/invalid-export-name.wasm' ) ) } )` ,
@@ -470,7 +451,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
470
451
it ( 'should reject wasm-js: export names' , async ( ) => {
471
452
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
472
453
'--no-warnings' ,
473
- '--experimental-wasm-modules' ,
474
454
'--input-type=module' ,
475
455
'--eval' ,
476
456
`import(${ JSON . stringify ( fixtures . fileURL ( 'es-modules/invalid-export-name-wasm-js.wasm' ) ) } )` ,
@@ -484,7 +464,6 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
484
464
it ( 'should support js-string builtins' , async ( ) => {
485
465
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
486
466
'--no-warnings' ,
487
- '--experimental-wasm-modules' ,
488
467
'--input-type=module' ,
489
468
'--eval' ,
490
469
[
0 commit comments