Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 327a8f7

Browse filesBrowse files
avivkellertargos
authored andcommitted
test: fix invalid wasm test
PR-URL: #54935 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5b012f5 commit 327a8f7
Copy full SHA for 327a8f7

File tree

Expand file treeCollapse file tree

1 file changed

+4
-10
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-10
lines changed
Open diff view settings
Collapse file

‎test/es-module/test-esm-extensionless-esm-and-wasm.mjs‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-extensionless-esm-and-wasm.mjs
+4-10Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Flags: --experimental-wasm-modules
2-
import { mustNotCall, spawnPromisified } from '../common/index.mjs';
2+
import { spawnPromisified } from '../common/index.mjs';
33
import * as fixtures from '../common/fixtures.mjs';
44
import { describe, it } from 'node:test';
5-
import { match, ok, strictEqual } from 'node:assert';
5+
import { match, strictEqual } from 'node:assert';
66

77
describe('extensionless ES modules within a "type": "module" package scope', {
88
concurrency: !process.env.TEST_PARALLEL,
@@ -91,13 +91,7 @@ describe('extensionless Wasm within no package scope', { concurrency: !process.e
9191
strictEqual(signal, null);
9292
});
9393

94-
// This succeeds with `--experimental-default-type=module`
95-
it('should error on import', async () => {
96-
try {
97-
await import(fixtures.fileURL('es-modules/noext-wasm'));
98-
mustNotCall();
99-
} catch (err) {
100-
ok(err instanceof SyntaxError);
101-
}
94+
it('should run on import', async () => {
95+
await import(fixtures.fileURL('es-modules/noext-wasm'));
10296
});
10397
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.