mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +02:00
Improve case clarify for syntax templates
This commit is contained in:
parent
d16874c264
commit
e116ccff0c
@ -9,7 +9,7 @@ info: |
|
|||||||
import()
|
import()
|
||||||
|
|
||||||
---*/
|
---*/
|
||||||
//- params
|
//- import
|
||||||
|
import()
|
||||||
//- teardown
|
//- teardown
|
||||||
/* The params region intentionally empty */
|
/* The params region intentionally empty */
|
||||||
|
@ -6,5 +6,5 @@ desc: Calling import('')
|
|||||||
template: syntax/valid
|
template: syntax/valid
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//- params
|
//- import
|
||||||
''
|
import('')
|
||||||
|
@ -28,4 +28,4 @@ negative:
|
|||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
let f = () => import(/*{ params }*/);
|
let f = () => /*{ import }*/;
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
let f = () => {
|
let f = () => {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
await import(/*{ params }*/);
|
await /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,6 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
return await import(/*{ params }*/);
|
return await /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,6 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
label: {
|
label: {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{
|
{
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
do {
|
do {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
} while (false);
|
} while (false);
|
||||||
|
@ -31,5 +31,5 @@ throw "Test262: This statement should not be evaluated.";
|
|||||||
let x = 0;
|
let x = 0;
|
||||||
do {
|
do {
|
||||||
x++;
|
x++;
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
} while (!x);
|
} while (!x);
|
||||||
|
@ -30,4 +30,4 @@ throw "Test262: This statement should not be evaluated.";
|
|||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else import(/*{ params }*/);
|
} else /*{ import }*/;
|
||||||
|
@ -31,5 +31,5 @@ throw "Test262: This statement should not be evaluated.";
|
|||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
return import(/*{ params }*/);
|
return /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -28,4 +28,4 @@ negative:
|
|||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
if (true) import(/*{ params }*/);
|
if (true) /*{ import }*/;
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -29,5 +29,5 @@ negative:
|
|||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
{
|
{
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -31,5 +31,5 @@ throw "Test262: This statement should not be evaluated.";
|
|||||||
let x = 0;
|
let x = 0;
|
||||||
while (!x) {
|
while (!x) {
|
||||||
x++;
|
x++;
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -18,4 +18,4 @@ negative:
|
|||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
|
@ -23,4 +23,4 @@ flags: [module]
|
|||||||
features: [dynamic-import]
|
features: [dynamic-import]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
let f = () => import(/*{ params }*/);
|
let f = () => /*{ import }*/;
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
let f = () => {
|
let f = () => {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
await import(/*{ params }*/);
|
await /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,6 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
return await import(/*{ params }*/);
|
return await /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,6 +24,6 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
label: {
|
label: {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
{
|
{
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
do {
|
do {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
} while (false);
|
} while (false);
|
||||||
|
@ -25,5 +25,5 @@ features: [dynamic-import]
|
|||||||
let x = 0;
|
let x = 0;
|
||||||
do {
|
do {
|
||||||
x++;
|
x++;
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
} while (!x);
|
} while (!x);
|
||||||
|
@ -25,4 +25,4 @@ features: [dynamic-import]
|
|||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else import(/*{ params }*/);
|
} else /*{ import }*/;
|
||||||
|
@ -26,5 +26,5 @@ features: [dynamic-import]
|
|||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
return import(/*{ params }*/);
|
return /*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -23,4 +23,4 @@ info: |
|
|||||||
features: [dynamic-import]
|
features: [dynamic-import]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
if (true) import(/*{ params }*/);
|
if (true) /*{ import }*/;
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,5 @@ features: [dynamic-import]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
{
|
{
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -26,5 +26,5 @@ features: [dynamic-import]
|
|||||||
let x = 0;
|
let x = 0;
|
||||||
while (!x) {
|
while (!x) {
|
||||||
x++;
|
x++;
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
};
|
};
|
||||||
|
@ -13,4 +13,4 @@ flags: [module]
|
|||||||
features: [dynamic-import]
|
features: [dynamic-import]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
import(/*{ params }*/);
|
/*{ import }*/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user