mirror of https://github.com/tc39/test262.git
Merge pull request #1719 from leobalter/private-fields-methods-whitespace-syntax-error
Private fields and methods whitespace syntax error
This commit is contained in:
commit
2c714ede1d
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName ()
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
get # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Accessor set Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
set # m(_) {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Async Generator Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [async-iteration, class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
async * # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Async Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [async-functions, class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
async # m() {}
|
|
@ -0,0 +1,30 @@
|
||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (CallExpression)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
#x;
|
||||||
|
|
||||||
|
f() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
m() {
|
||||||
|
this.f().# x;
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Field with Initializer)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
# x = 1;
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Field)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
# x;
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Generator Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [generators, class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
* # m() {}
|
|
@ -0,0 +1,25 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (MemberExpression)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
#x;
|
||||||
|
m() {
|
||||||
|
this.# x;
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
# m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Accessor get Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static get # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Accessor set Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static set # m(_) {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Async Generator Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [async-iteration, class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static async * # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Async Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static async # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Field with Initializer)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static # x = 1;
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Field)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-fields-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static # x;
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Generator Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [generators, class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static * # m() {}
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
desc: No space allowed between sigil and IdentifierName (Static Method)
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
template: syntax/invalid
|
||||||
|
features: [class-static-methods-private]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- elements
|
||||||
|
static # m() {}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-accessor-get-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName () (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
get # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-accessor-set-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Accessor set Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
set # m(_) {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-async-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Generator Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async * # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-async-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
async # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,39 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-call-expr.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (CallExpression) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
#x;
|
||||||
|
|
||||||
|
f() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
m() {
|
||||||
|
this.f().# x;
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-field-init.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Field with Initializer) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
# x = 1;
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-field.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Field) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
# x;
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Generator Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
* # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,34 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-member-expr.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (MemberExpression) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
#x;
|
||||||
|
m() {
|
||||||
|
this.# x;
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-meth.case.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
# m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-accessor-get-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Accessor get Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static get # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-accessor-set-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Accessor set Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static set # m(_) {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-async-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Async Generator Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async * # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-async-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static async # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-field-init.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Field with Initializer) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static # x = 1;
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-field.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Field) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static # x;
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Generator Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static * # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Method) (class expression)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
var C = class {
|
||||||
|
static # m() {}
|
||||||
|
};
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-accessor-get-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName () (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
get # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-accessor-set-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Accessor set Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
set # m(_) {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-async-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Generator Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
async * # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-async-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-functions, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
async # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-call-expr.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (CallExpression) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
#x;
|
||||||
|
|
||||||
|
f() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
m() {
|
||||||
|
this.f().# x;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-field-init.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Field with Initializer) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
# x = 1;
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-field.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Field) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
# x;
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Generator Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
* # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-member-expr.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (MemberExpression) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
MemberExpression :
|
||||||
|
MemberExpression . PrivateName
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
CallExpression . PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
#x;
|
||||||
|
m() {
|
||||||
|
this.# x;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-meth.case.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
# m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-accessor-get-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Accessor get Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static get # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-accessor-set-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Accessor set Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static set # m(_) {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-async-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Async Generator Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [async-iteration, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static async * # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-async-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Async Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static async # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-field-init.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Field with Initializer) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static # x = 1;
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-field.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Field) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-fields-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static # x;
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-gen-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Generator Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [generators, class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static * # m() {}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-meth.case
|
||||||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||||||
|
/*---
|
||||||
|
description: No space allowed between sigil and IdentifierName (Static Method) (class declaration)
|
||||||
|
esid: prod-ClassElement
|
||||||
|
features: [class-static-methods-private, class]
|
||||||
|
flags: [generated]
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
info: |
|
||||||
|
Updated Productions
|
||||||
|
|
||||||
|
ClassElementName :
|
||||||
|
PropertyName
|
||||||
|
PrivateName
|
||||||
|
|
||||||
|
PrivateName ::
|
||||||
|
# IdentifierName
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
class C {
|
||||||
|
static # m() {}
|
||||||
|
}
|
Loading…
Reference in New Issue