Remove superfluous EmptyStatement

This commit is contained in:
Mike Pennisi 2021-10-05 15:28:48 -04:00 committed by Rick Waldron
parent 8f1fb5c257
commit 891b7915bd
77 changed files with 77 additions and 77 deletions

View File

@ -25,4 +25,4 @@ info: |
---*/ ---*/
// length is a label! // length is a label!
{length: 3000}/*{ StatementListItem }*/; {length: 3000}/*{ StatementListItem }*/

View File

@ -24,4 +24,4 @@ info: |
{ StatementList_opt } { StatementList_opt }
---*/ ---*/
{}/*{ StatementListItem }*/; {}/*{ StatementListItem }*/

View File

@ -19,4 +19,4 @@ info: |
features: [class] features: [class]
---*/ ---*/
class C {}/*{ StatementListItem }*/; class C {}/*{ StatementListItem }*/

View File

@ -25,7 +25,7 @@ info: |
---*/ ---*/
// length is a label! // length is a label!
var result = eval('{length: 3000}/*{ StatementListItem }*/;'); var result = eval('{length: 3000}/*{ StatementListItem }*/');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -19,6 +19,6 @@ info: |
features: [class] features: [class]
---*/ ---*/
var result = eval('class C {}/*{ StatementListItem }*/;'); var result = eval('class C {}/*{ StatementListItem }*/');
/*{ EvalAssertions }*/ /*{ EvalAssertions }*/

View File

@ -21,6 +21,6 @@ info: |
function BindingIdentifier ( FormalParameters ) { FunctionBody } function BindingIdentifier ( FormalParameters ) { FunctionBody }
---*/ ---*/
var result = eval('function fn() {}/*{ StatementListItem }*/;'); var result = eval('function fn() {}/*{ StatementListItem }*/');
/*{ EvalAssertions }*/ /*{ EvalAssertions }*/

View File

@ -21,4 +21,4 @@ info: |
function BindingIdentifier ( FormalParameters ) { FunctionBody } function BindingIdentifier ( FormalParameters ) { FunctionBody }
---*/ ---*/
function fn() {}/*{ StatementListItem }*/; function fn() {}/*{ StatementListItem }*/

View File

@ -41,4 +41,4 @@ info: |
---*/ ---*/
{}[42];; {}[42];

View File

@ -41,4 +41,4 @@ info: |
---*/ ---*/
{}[];; {}[];

View File

@ -52,4 +52,4 @@ info: |
---*/ ---*/
{}() => 42;; {}() => 42;

View File

@ -52,4 +52,4 @@ info: |
---*/ ---*/
{}() => { return 42; };; {}() => { return 42; };

View File

@ -37,4 +37,4 @@ info: |
---*/ ---*/
{}{x: 42};; {}{x: 42};

View File

@ -37,4 +37,4 @@ info: |
---*/ ---*/
{}{}; {}{}

View File

@ -54,4 +54,4 @@ info: |
---*/ ---*/
{}() => 1, 42;; {}() => 1, 42;

View File

@ -35,4 +35,4 @@ info: |
---*/ ---*/
{}let a, b = 42, c;b;; {}let a, b = 42, c;b;

View File

@ -39,4 +39,4 @@ info: |
---*/ ---*/
{}/1/g;; {}/1/g;

View File

@ -39,4 +39,4 @@ info: |
---*/ ---*/
{}/1/;; {}/1/;

View File

@ -42,4 +42,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}[42];; {length: 3000}[42];

View File

@ -42,4 +42,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}[];; {length: 3000}[];

View File

@ -53,4 +53,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}() => 42;; {length: 3000}() => 42;

View File

@ -53,4 +53,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}() => { return 42; };; {length: 3000}() => { return 42; };

View File

@ -38,4 +38,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}{x: 42};; {length: 3000}{x: 42};

View File

@ -38,4 +38,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}{}; {length: 3000}{}

View File

@ -55,4 +55,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}() => 1, 42;; {length: 3000}() => 1, 42;

View File

@ -36,4 +36,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}let a, b = 42, c;b;; {length: 3000}let a, b = 42, c;b;

View File

@ -40,4 +40,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}/1/g;; {length: 3000}/1/g;

View File

@ -40,4 +40,4 @@ info: |
// length is a label! // length is a label!
{length: 3000}/1/;; {length: 3000}/1/;

View File

@ -37,4 +37,4 @@ info: |
---*/ ---*/
class C {}[42];; class C {}[42];

View File

@ -37,4 +37,4 @@ info: |
---*/ ---*/
class C {}[];; class C {}[];

View File

@ -47,4 +47,4 @@ info: |
---*/ ---*/
class C {}() => 42;; class C {}() => 42;

View File

@ -47,4 +47,4 @@ info: |
---*/ ---*/
class C {}() => { return 42; };; class C {}() => { return 42; };

View File

@ -33,4 +33,4 @@ info: |
---*/ ---*/
class C {}{x: 42};; class C {}{x: 42};

View File

@ -33,4 +33,4 @@ info: |
---*/ ---*/
class C {}{}; class C {}{}

View File

@ -49,4 +49,4 @@ info: |
---*/ ---*/
class C {}() => 1, 42;; class C {}() => 1, 42;

View File

@ -31,4 +31,4 @@ info: |
---*/ ---*/
class C {}let a, b = 42, c;b;; class C {}let a, b = 42, c;b;

View File

@ -35,4 +35,4 @@ info: |
---*/ ---*/
class C {}/1/g;; class C {}/1/g;

View File

@ -35,4 +35,4 @@ info: |
---*/ ---*/
class C {}/1/;; class C {}/1/;

View File

@ -42,7 +42,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}[42];;'); var result = eval('{length: 3000}[42];');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -42,7 +42,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}[];;'); var result = eval('{length: 3000}[];');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -53,7 +53,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}() => 42;;'); var result = eval('{length: 3000}() => 42;');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -53,7 +53,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}() => { return 42; };;'); var result = eval('{length: 3000}() => { return 42; };');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -38,7 +38,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}{x: 42};;'); var result = eval('{length: 3000}{x: 42};');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -38,7 +38,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}{};'); var result = eval('{length: 3000}{}');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -55,7 +55,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}() => 1, 42;;'); var result = eval('{length: 3000}() => 1, 42;');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -36,7 +36,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}let a, b = 42, c;b;;'); var result = eval('{length: 3000}let a, b = 42, c;b;');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -40,7 +40,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}/1/g;;'); var result = eval('{length: 3000}/1/g;');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -40,7 +40,7 @@ info: |
// length is a label! // length is a label!
var result = eval('{length: 3000}/1/;;'); var result = eval('{length: 3000}/1/;');
// Reuse this value for items with empty completions // Reuse this value for items with empty completions
var expected = 3000; var expected = 3000;

View File

@ -37,7 +37,7 @@ info: |
---*/ ---*/
var result = eval('class C {}[42];;'); var result = eval('class C {}[42];');
assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(result.length, 1); assert.sameValue(result.length, 1);

View File

@ -37,7 +37,7 @@ info: |
---*/ ---*/
var result = eval('class C {}[];;'); var result = eval('class C {}[];');
assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(result.length, 0); assert.sameValue(result.length, 0);

View File

@ -47,6 +47,6 @@ info: |
---*/ ---*/
var result = eval('class C {}() => 42;;'); var result = eval('class C {}() => 42;');
assert.sameValue(result(), 42); assert.sameValue(result(), 42);

View File

@ -47,6 +47,6 @@ info: |
---*/ ---*/
var result = eval('class C {}() => { return 42; };;'); var result = eval('class C {}() => { return 42; };');
assert.sameValue(result(), 42); assert.sameValue(result(), 42);

View File

@ -33,6 +33,6 @@ info: |
---*/ ---*/
var result = eval('class C {}{x: 42};;'); var result = eval('class C {}{x: 42};');
assert.sameValue(result, 42, 'it does not evaluate to an Object with the property x'); assert.sameValue(result, 42, 'it does not evaluate to an Object with the property x');

View File

@ -33,6 +33,6 @@ info: |
---*/ ---*/
var result = eval('class C {}{};'); var result = eval('class C {}{}');
assert.sameValue(result, undefined); assert.sameValue(result, undefined);

View File

@ -49,6 +49,6 @@ info: |
---*/ ---*/
var result = eval('class C {}() => 1, 42;;'); var result = eval('class C {}() => 1, 42;');
assert.sameValue(result, 42); assert.sameValue(result, 42);

View File

@ -31,6 +31,6 @@ info: |
---*/ ---*/
var result = eval('class C {}let a, b = 42, c;b;;'); var result = eval('class C {}let a, b = 42, c;b;');
assert.sameValue(result, 42); assert.sameValue(result, 42);

View File

@ -35,7 +35,7 @@ info: |
---*/ ---*/
var result = eval('class C {}/1/g;;'); var result = eval('class C {}/1/g;');
assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype); assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype);
assert.sameValue(result.flags, 'g'); assert.sameValue(result.flags, 'g');

View File

@ -35,7 +35,7 @@ info: |
---*/ ---*/
var result = eval('class C {}/1/;;'); var result = eval('class C {}/1/;');
assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype); assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype);
assert.sameValue(result.flags, ''); assert.sameValue(result.flags, '');

View File

@ -38,7 +38,7 @@ info: |
---*/ ---*/
var result = eval('function fn() {}[42];;'); var result = eval('function fn() {}[42];');
assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(result.length, 1); assert.sameValue(result.length, 1);

View File

@ -38,7 +38,7 @@ info: |
---*/ ---*/
var result = eval('function fn() {}[];;'); var result = eval('function fn() {}[];');
assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(result.length, 0); assert.sameValue(result.length, 0);

View File

@ -49,6 +49,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}() => 42;;'); var result = eval('function fn() {}() => 42;');
assert.sameValue(result(), 42); assert.sameValue(result(), 42);

View File

@ -49,6 +49,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}() => { return 42; };;'); var result = eval('function fn() {}() => { return 42; };');
assert.sameValue(result(), 42); assert.sameValue(result(), 42);

View File

@ -34,6 +34,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}{x: 42};;'); var result = eval('function fn() {}{x: 42};');
assert.sameValue(result, 42, 'it does not evaluate to an Object with the property x'); assert.sameValue(result, 42, 'it does not evaluate to an Object with the property x');

View File

@ -34,6 +34,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}{};'); var result = eval('function fn() {}{}');
assert.sameValue(result, undefined); assert.sameValue(result, undefined);

View File

@ -51,6 +51,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}() => 1, 42;;'); var result = eval('function fn() {}() => 1, 42;');
assert.sameValue(result, 42); assert.sameValue(result, 42);

View File

@ -32,6 +32,6 @@ info: |
---*/ ---*/
var result = eval('function fn() {}let a, b = 42, c;b;;'); var result = eval('function fn() {}let a, b = 42, c;b;');
assert.sameValue(result, 42); assert.sameValue(result, 42);

View File

@ -36,7 +36,7 @@ info: |
---*/ ---*/
var result = eval('function fn() {}/1/g;;'); var result = eval('function fn() {}/1/g;');
assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype); assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype);
assert.sameValue(result.flags, 'g'); assert.sameValue(result.flags, 'g');

View File

@ -36,7 +36,7 @@ info: |
---*/ ---*/
var result = eval('function fn() {}/1/;;'); var result = eval('function fn() {}/1/;');
assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype); assert.sameValue(Object.getPrototypeOf(result), RegExp.prototype);
assert.sameValue(result.flags, ''); assert.sameValue(result.flags, '');

View File

@ -38,4 +38,4 @@ info: |
---*/ ---*/
function fn() {}[42];; function fn() {}[42];

View File

@ -38,4 +38,4 @@ info: |
---*/ ---*/
function fn() {}[];; function fn() {}[];

View File

@ -49,4 +49,4 @@ info: |
---*/ ---*/
function fn() {}() => 42;; function fn() {}() => 42;

View File

@ -49,4 +49,4 @@ info: |
---*/ ---*/
function fn() {}() => { return 42; };; function fn() {}() => { return 42; };

View File

@ -34,4 +34,4 @@ info: |
---*/ ---*/
function fn() {}{x: 42};; function fn() {}{x: 42};

View File

@ -34,4 +34,4 @@ info: |
---*/ ---*/
function fn() {}{}; function fn() {}{}

View File

@ -51,4 +51,4 @@ info: |
---*/ ---*/
function fn() {}() => 1, 42;; function fn() {}() => 1, 42;

View File

@ -32,4 +32,4 @@ info: |
---*/ ---*/
function fn() {}let a, b = 42, c;b;; function fn() {}let a, b = 42, c;b;

View File

@ -36,4 +36,4 @@ info: |
---*/ ---*/
function fn() {}/1/g;; function fn() {}/1/g;

View File

@ -36,4 +36,4 @@ info: |
---*/ ---*/
function fn() {}/1/;; function fn() {}/1/;