mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Generate tests
This commit is contained in:
parent
7ec5d801f0
commit
874f508077
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
let f = () => import('./script-code-valid.js');
|
let f = () => import('./script-code-valid.js');
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
let f = () => {
|
let f = () => {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
label: {
|
label: {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
if (true) import('./script-code-valid.js');
|
if (true) import('./script-code-valid.js');
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
let x = 0;
|
let x = 0;
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
with ({}) {
|
with ({}) {
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
---*/
|
---*/
|
||||||
// This is still valid in script code, and should not be valid for module code
|
// 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
|
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||||
var x; function x() {}
|
var smoosh; function smoosh() {}
|
||||||
|
|
||||||
|
|
||||||
import('./script-code-valid.js');
|
import('./script-code-valid.js');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user