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