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