Skip to content

Commit

Permalink
Remove superfluous EmptyStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike authored and rwaldron committed Oct 5, 2021
1 parent 8f1fb5c commit 891b791
Show file tree
Hide file tree
Showing 77 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion src/statementList/default/block-with-statement.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ info: |
---*/

// length is a label!
{length: 3000}/*{ StatementListItem }*/;
{length: 3000}/*{ StatementListItem }*/
2 changes: 1 addition & 1 deletion src/statementList/default/block.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ info: |
{ StatementList_opt }
---*/

{}/*{ StatementListItem }*/;
{}/*{ StatementListItem }*/
2 changes: 1 addition & 1 deletion src/statementList/default/class-declaration.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ info: |
features: [class]
---*/

class C {}/*{ StatementListItem }*/;
class C {}/*{ StatementListItem }*/
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ info: |
---*/

// length is a label!
var result = eval('{length: 3000}/*{ StatementListItem }*/;');
var result = eval('{length: 3000}/*{ StatementListItem }*/');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
2 changes: 1 addition & 1 deletion src/statementList/default/eval-class-declaration.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ info: |
features: [class]
---*/

var result = eval('class C {}/*{ StatementListItem }*/;');
var result = eval('class C {}/*{ StatementListItem }*/');

/*{ EvalAssertions }*/
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ info: |
function BindingIdentifier ( FormalParameters ) { FunctionBody }
---*/

var result = eval('function fn() {}/*{ StatementListItem }*/;');
var result = eval('function fn() {}/*{ StatementListItem }*/');

/*{ EvalAssertions }*/
2 changes: 1 addition & 1 deletion src/statementList/default/function-declaration.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ info: |
function BindingIdentifier ( FormalParameters ) { FunctionBody }
---*/

function fn() {}/*{ StatementListItem }*/;
function fn() {}/*{ StatementListItem }*/
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ info: |
---*/


{}[42];;
{}[42];
2 changes: 1 addition & 1 deletion test/language/statementList/block-array-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ info: |
---*/


{}[];;
{}[];
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ info: |
---*/


{}() => 42;;
{}() => 42;
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ info: |
---*/


{}() => { return 42; };;
{}() => { return 42; };
2 changes: 1 addition & 1 deletion test/language/statementList/block-block-with-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ info: |
---*/


{}{x: 42};;
{}{x: 42};
2 changes: 1 addition & 1 deletion test/language/statementList/block-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ info: |
---*/


{}{};
{}{}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ info: |
---*/


{}() => 1, 42;;
{}() => 1, 42;
2 changes: 1 addition & 1 deletion test/language/statementList/block-let-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ info: |
---*/


{}let a, b = 42, c;b;;
{}let a, b = 42, c;b;
2 changes: 1 addition & 1 deletion test/language/statementList/block-regexp-literal-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ info: |
---*/


{}/1/g;;
{}/1/g;
2 changes: 1 addition & 1 deletion test/language/statementList/block-regexp-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ info: |
---*/


{}/1/;;
{}/1/;
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ info: |


// length is a label!
{length: 3000}[42];;
{length: 3000}[42];
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ info: |


// length is a label!
{length: 3000}[];;
{length: 3000}[];
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ info: |


// length is a label!
{length: 3000}() => 42;;
{length: 3000}() => 42;
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ info: |


// length is a label!
{length: 3000}() => { return 42; };;
{length: 3000}() => { return 42; };
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ info: |


// length is a label!
{length: 3000}{x: 42};;
{length: 3000}{x: 42};
2 changes: 1 addition & 1 deletion test/language/statementList/block-with-statment-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ info: |


// length is a label!
{length: 3000}{};
{length: 3000}{}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ info: |


// length is a label!
{length: 3000}() => 1, 42;;
{length: 3000}() => 1, 42;
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ info: |


// length is a label!
{length: 3000}let a, b = 42, c;b;;
{length: 3000}let a, b = 42, c;b;
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ info: |


// length is a label!
{length: 3000}/1/g;;
{length: 3000}/1/g;
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ info: |


// length is a label!
{length: 3000}/1/;;
{length: 3000}/1/;
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ info: |
---*/


class C {}[42];;
class C {}[42];
2 changes: 1 addition & 1 deletion test/language/statementList/class-array-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ info: |
---*/


class C {}[];;
class C {}[];
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ info: |
---*/


class C {}() => 42;;
class C {}() => 42;
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ info: |
---*/


class C {}() => { return 42; };;
class C {}() => { return 42; };
2 changes: 1 addition & 1 deletion test/language/statementList/class-block-with-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ info: |
---*/


class C {}{x: 42};;
class C {}{x: 42};
2 changes: 1 addition & 1 deletion test/language/statementList/class-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ info: |
---*/


class C {}{};
class C {}{}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ info: |
---*/


class C {}() => 1, 42;;
class C {}() => 1, 42;
2 changes: 1 addition & 1 deletion test/language/statementList/class-let-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ info: |
---*/


class C {}let a, b = 42, c;b;;
class C {}let a, b = 42, c;b;
2 changes: 1 addition & 1 deletion test/language/statementList/class-regexp-literal-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ info: |
---*/


class C {}/1/g;;
class C {}/1/g;
2 changes: 1 addition & 1 deletion test/language/statementList/class-regexp-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ info: |
---*/


class C {}/1/;;
class C {}/1/;
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |


// length is a label!
var result = eval('{length: 3000}[42];;');
var result = eval('{length: 3000}[42];');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |


// length is a label!
var result = eval('{length: 3000}[];;');
var result = eval('{length: 3000}[];');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ info: |


// length is a label!
var result = eval('{length: 3000}() => 42;;');
var result = eval('{length: 3000}() => 42;');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ info: |


// 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
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ info: |


// 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
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ info: |


// length is a label!
var result = eval('{length: 3000}{};');
var result = eval('{length: 3000}{}');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ info: |


// 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
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ info: |


// 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
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ info: |


// 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
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ info: |


// length is a label!
var result = eval('{length: 3000}/1/;;');
var result = eval('{length: 3000}/1/;');

// Reuse this value for items with empty completions
var expected = 3000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(result.length, 1);
Expand Down
2 changes: 1 addition & 1 deletion test/language/statementList/eval-class-array-literal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ info: |
---*/


var result = eval('class C {}[];;');
var result = eval('class C {}[];');

assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(result.length, 0);
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ info: |
---*/


var result = eval('class C {}() => 42;;');
var result = eval('class C {}() => 42;');

assert.sameValue(result(), 42);
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ info: |
---*/


var result = eval('class C {}() => { return 42; };;');
var result = eval('class C {}() => { return 42; };');

assert.sameValue(result(), 42);
Original file line number Diff line number Diff line change
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion test/language/statementList/eval-class-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ info: |
---*/


var result = eval('class C {}{};');
var result = eval('class C {}{}');

assert.sameValue(result, undefined);
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ info: |
---*/


var result = eval('class C {}() => 1, 42;;');
var result = eval('class C {}() => 1, 42;');

assert.sameValue(result, 42);
2 changes: 1 addition & 1 deletion test/language/statementList/eval-class-let-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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(result.flags, 'g');
Expand Down
Loading

0 comments on commit 891b791

Please sign in to comment.