mirror of https://github.com/tc39/test262.git
Remove superfluous EmptyStatement
This commit is contained in:
parent
8f1fb5c257
commit
891b7915bd
|
@ -25,4 +25,4 @@ info: |
|
|||
---*/
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}/*{ StatementListItem }*/;
|
||||
{length: 3000}/*{ StatementListItem }*/
|
||||
|
|
|
@ -24,4 +24,4 @@ info: |
|
|||
{ StatementList_opt }
|
||||
---*/
|
||||
|
||||
{}/*{ StatementListItem }*/;
|
||||
{}/*{ StatementListItem }*/
|
||||
|
|
|
@ -19,4 +19,4 @@ info: |
|
|||
features: [class]
|
||||
---*/
|
||||
|
||||
class C {}/*{ StatementListItem }*/;
|
||||
class C {}/*{ StatementListItem }*/
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -19,6 +19,6 @@ info: |
|
|||
features: [class]
|
||||
---*/
|
||||
|
||||
var result = eval('class C {}/*{ StatementListItem }*/;');
|
||||
var result = eval('class C {}/*{ StatementListItem }*/');
|
||||
|
||||
/*{ EvalAssertions }*/
|
||||
|
|
|
@ -21,6 +21,6 @@ info: |
|
|||
function BindingIdentifier ( FormalParameters ) { FunctionBody }
|
||||
---*/
|
||||
|
||||
var result = eval('function fn() {}/*{ StatementListItem }*/;');
|
||||
var result = eval('function fn() {}/*{ StatementListItem }*/');
|
||||
|
||||
/*{ EvalAssertions }*/
|
||||
|
|
|
@ -21,4 +21,4 @@ info: |
|
|||
function BindingIdentifier ( FormalParameters ) { FunctionBody }
|
||||
---*/
|
||||
|
||||
function fn() {}/*{ StatementListItem }*/;
|
||||
function fn() {}/*{ StatementListItem }*/
|
||||
|
|
|
@ -41,4 +41,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}[42];;
|
||||
{}[42];
|
||||
|
|
|
@ -41,4 +41,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}[];;
|
||||
{}[];
|
||||
|
|
|
@ -52,4 +52,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}() => 42;;
|
||||
{}() => 42;
|
||||
|
|
|
@ -52,4 +52,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}() => { return 42; };;
|
||||
{}() => { return 42; };
|
||||
|
|
|
@ -37,4 +37,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}{x: 42};;
|
||||
{}{x: 42};
|
||||
|
|
|
@ -37,4 +37,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}{};
|
||||
{}{}
|
||||
|
|
|
@ -54,4 +54,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}() => 1, 42;;
|
||||
{}() => 1, 42;
|
||||
|
|
|
@ -35,4 +35,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}let a, b = 42, c;b;;
|
||||
{}let a, b = 42, c;b;
|
||||
|
|
|
@ -39,4 +39,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}/1/g;;
|
||||
{}/1/g;
|
||||
|
|
|
@ -39,4 +39,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
{}/1/;;
|
||||
{}/1/;
|
||||
|
|
|
@ -42,4 +42,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}[42];;
|
||||
{length: 3000}[42];
|
||||
|
|
|
@ -42,4 +42,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}[];;
|
||||
{length: 3000}[];
|
||||
|
|
|
@ -53,4 +53,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}() => 42;;
|
||||
{length: 3000}() => 42;
|
||||
|
|
|
@ -53,4 +53,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}() => { return 42; };;
|
||||
{length: 3000}() => { return 42; };
|
||||
|
|
|
@ -38,4 +38,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}{x: 42};;
|
||||
{length: 3000}{x: 42};
|
||||
|
|
|
@ -38,4 +38,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}{};
|
||||
{length: 3000}{}
|
||||
|
|
|
@ -55,4 +55,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}() => 1, 42;;
|
||||
{length: 3000}() => 1, 42;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -40,4 +40,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}/1/g;;
|
||||
{length: 3000}/1/g;
|
||||
|
|
|
@ -40,4 +40,4 @@ info: |
|
|||
|
||||
|
||||
// length is a label!
|
||||
{length: 3000}/1/;;
|
||||
{length: 3000}/1/;
|
||||
|
|
|
@ -37,4 +37,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}[42];;
|
||||
class C {}[42];
|
||||
|
|
|
@ -37,4 +37,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}[];;
|
||||
class C {}[];
|
||||
|
|
|
@ -47,4 +47,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}() => 42;;
|
||||
class C {}() => 42;
|
||||
|
|
|
@ -47,4 +47,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}() => { return 42; };;
|
||||
class C {}() => { return 42; };
|
||||
|
|
|
@ -33,4 +33,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}{x: 42};;
|
||||
class C {}{x: 42};
|
||||
|
|
|
@ -33,4 +33,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}{};
|
||||
class C {}{}
|
||||
|
|
|
@ -49,4 +49,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}() => 1, 42;;
|
||||
class C {}() => 1, 42;
|
||||
|
|
|
@ -31,4 +31,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}let a, b = 42, c;b;;
|
||||
class C {}let a, b = 42, c;b;
|
||||
|
|
|
@ -35,4 +35,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}/1/g;;
|
||||
class C {}/1/g;
|
||||
|
|
|
@ -35,4 +35,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
class C {}/1/;;
|
||||
class C {}/1/;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -47,6 +47,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('class C {}() => 42;;');
|
||||
var result = eval('class C {}() => 42;');
|
||||
|
||||
assert.sameValue(result(), 42);
|
||||
|
|
|
@ -47,6 +47,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('class C {}() => { return 42; };;');
|
||||
var result = eval('class C {}() => { return 42; };');
|
||||
|
||||
assert.sameValue(result(), 42);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -33,6 +33,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('class C {}{};');
|
||||
var result = eval('class C {}{}');
|
||||
|
||||
assert.sameValue(result, undefined);
|
||||
|
|
|
@ -49,6 +49,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('class C {}() => 1, 42;;');
|
||||
var result = eval('class C {}() => 1, 42;');
|
||||
|
||||
assert.sameValue(result, 42);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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(result.flags, '');
|
||||
|
|
|
@ -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(result.length, 1);
|
||||
|
|
|
@ -38,7 +38,7 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('function fn() {}[];;');
|
||||
var result = eval('function fn() {}[];');
|
||||
|
||||
assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
|
||||
assert.sameValue(result.length, 0);
|
||||
|
|
|
@ -49,6 +49,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('function fn() {}() => 42;;');
|
||||
var result = eval('function fn() {}() => 42;');
|
||||
|
||||
assert.sameValue(result(), 42);
|
||||
|
|
|
@ -49,6 +49,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('function fn() {}() => { return 42; };;');
|
||||
var result = eval('function fn() {}() => { return 42; };');
|
||||
|
||||
assert.sameValue(result(), 42);
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -34,6 +34,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('function fn() {}{};');
|
||||
var result = eval('function fn() {}{}');
|
||||
|
||||
assert.sameValue(result, undefined);
|
||||
|
|
|
@ -51,6 +51,6 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
var result = eval('function fn() {}() => 1, 42;;');
|
||||
var result = eval('function fn() {}() => 1, 42;');
|
||||
|
||||
assert.sameValue(result, 42);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(result.flags, 'g');
|
||||
|
|
|
@ -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(result.flags, '');
|
||||
|
|
|
@ -38,4 +38,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}[42];;
|
||||
function fn() {}[42];
|
||||
|
|
|
@ -38,4 +38,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}[];;
|
||||
function fn() {}[];
|
||||
|
|
|
@ -49,4 +49,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}() => 42;;
|
||||
function fn() {}() => 42;
|
||||
|
|
|
@ -49,4 +49,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}() => { return 42; };;
|
||||
function fn() {}() => { return 42; };
|
||||
|
|
|
@ -34,4 +34,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}{x: 42};;
|
||||
function fn() {}{x: 42};
|
||||
|
|
|
@ -34,4 +34,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}{};
|
||||
function fn() {}{}
|
||||
|
|
|
@ -51,4 +51,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}() => 1, 42;;
|
||||
function fn() {}() => 1, 42;
|
||||
|
|
|
@ -32,4 +32,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}let a, b = 42, c;b;;
|
||||
function fn() {}let a, b = 42, c;b;
|
||||
|
|
|
@ -36,4 +36,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}/1/g;;
|
||||
function fn() {}/1/g;
|
||||
|
|
|
@ -36,4 +36,4 @@ info: |
|
|||
---*/
|
||||
|
||||
|
||||
function fn() {}/1/;;
|
||||
function fn() {}/1/;
|
||||
|
|
Loading…
Reference in New Issue