@@ -124,8 +124,7 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
124
124
strictEqual ( code , 0 ) ;
125
125
} ) ;
126
126
127
- // TODO: Enable this once https://github.com/nodejs/node/pull/56842 lands.
128
- it . skip ( 'should support dynamic source phase imports' , async ( ) => {
127
+ it ( 'should support dynamic source phase imports' , async ( ) => {
129
128
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
130
129
'--no-warnings' ,
131
130
'--experimental-wasm-modules' ,
@@ -166,8 +165,7 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
166
165
strictEqual ( code , 0 ) ;
167
166
} ) ;
168
167
169
- // TODO: Enable this once https://github.com/nodejs/node/pull/56842 lands.
170
- it . skip ( 'should not execute dynamic source phase imports' , async ( ) => {
168
+ it ( 'should not execute dynamic source phase imports' , async ( ) => {
171
169
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
172
170
'--no-warnings' ,
173
171
'--experimental-wasm-modules' ,
@@ -181,8 +179,7 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
181
179
strictEqual ( code , 0 ) ;
182
180
} ) ;
183
181
184
- // TODO: Enable this once https://github.com/nodejs/node/pull/56842 lands.
185
- it . skip ( 'should throw for dynamic source phase imports not defined' , async ( ) => {
182
+ it ( 'should throw for dynamic source phase imports not defined' , async ( ) => {
186
183
const fileUrl = fixtures . fileURL ( 'es-modules/wasm-source-phase.js' ) ;
187
184
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
188
185
'--no-warnings' ,
@@ -195,6 +192,7 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
195
192
' strictEqual(e instanceof SyntaxError, true);' ,
196
193
' strictEqual(e.message.includes("Source phase import object is not defined for module"), true);' ,
197
194
` strictEqual(e.message.includes(${ JSON . stringify ( fileUrl ) } ), true);` ,
195
+ ` return true` ,
198
196
'});' ,
199
197
] . join ( '\n' ) ,
200
198
] ) ;
@@ -238,8 +236,7 @@ describe('ESM: WASM modules', { concurrency: !process.env.TEST_PARALLEL }, () =>
238
236
notStrictEqual ( code , 0 ) ;
239
237
} ) ;
240
238
241
- // TODO: Enable this once https://github.com/nodejs/node/pull/56842 lands.
242
- it . skip ( 'should throw for vm source phase dynamic import' , async ( ) => {
239
+ it ( 'should throw for vm source phase dynamic import' , async ( ) => {
243
240
const { code, stderr, stdout } = await spawnPromisified ( execPath , [
244
241
'--no-warnings' ,
245
242
'--experimental-wasm-modules' ,
0 commit comments