test(es/compat): Add execution tests (#6312)

This commit is contained in:
Donny/강동윤 2022-11-02 11:59:47 +09:00 committed by GitHub
parent 5fafa7b296
commit 0f9d930f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
// input.js
try { await; } catch { console.log("caught"); }

View File

@ -0,0 +1 @@
var [...x] = 0;

View File

@ -0,0 +1,2 @@
"use strict";
for ({} in [0]);

View File

@ -0,0 +1 @@
let [] = [];

View File

@ -0,0 +1 @@
class x { static { super.x = 0; } }

View File

@ -0,0 +1,2 @@
"use strict";
x = {} = null;

View File

@ -0,0 +1 @@
class x { static y = x = 0; }

View File

@ -0,0 +1,2 @@
var x = { x } = 0;
console.log(x);

View File

@ -0,0 +1 @@
class x { static x = super.x += super.x += 0; }

View File

@ -0,0 +1 @@
switch ( 0 ) { case x : function x ( ) { } }