test(parser): add no_plugin tests for module blocks (#13714)

This commit is contained in:
Sosuke Suzuki 2021-08-30 16:09:05 +09:00 committed by GitHub
parent 1355d0078c
commit a54f041440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
let moduleBlock = module {
export let y = 1;
};
let moduleExports = await import(moduleBlock);

View File

@ -0,0 +1,3 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleBlocks' (1:18)"
}