mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 13:04:39 +02:00
Generate tests
This commit is contained in:
parent
4388d5dc25
commit
9e4fc1b1c2
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
let f = () => import('./script-code-valid.js');
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
let f = () => {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
async function f() {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
async function f() {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
async function f() {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
label: {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
{
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
do {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
if (false) {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
if (false) {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
function fn() {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
function fn() {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
if (true) import('./script-code-valid.js');
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
if (true) {
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
let x = 0;
|
||||
|
@ -21,9 +21,9 @@ info: |
|
||||
9. Return promiseCapability.[[Promise]].
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
with ({}) {
|
||||
|
@ -11,9 +11,9 @@ info: |
|
||||
import( AssignmentExpression )
|
||||
|
||||
---*/
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
|
||||
import('./script-code-valid.js');
|
||||
|
Loading…
x
Reference in New Issue
Block a user