Merge branch 'private-methods-delete-error' of git://github.com/jbhoosreddy/test262 into jbhoosreddy-private-methods-delete-error

* 'private-methods-delete-error' of git://github.com/jbhoosreddy/test262:
  revisions
  fixes
  test: Early error private methods delete (#1343)
This commit is contained in:
Rick Waldron 2018-09-13 09:58:42 -04:00
commit ebbf19b156
10 changed files with 140 additions and 4 deletions

View File

@ -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: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
async *#m() {}

View File

@ -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: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
async #m() {}

View File

@ -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: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
* #m() {}

View File

@ -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: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class, class-fields-private, class-methods-private, class-fields-public]
---*/
//- infieldsetup
g = this.f;
//- infunctionsetup
var g = this.f;
//- expression
g().#m
//- functiondeclaration
f() {
return this;
}
#m() {}

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Syntax error if you call delete on call expressions . privatename
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class, class-fields-private, class-fields-public]
---*/
@ -14,6 +14,6 @@ var g = this.f;
//- expression
g().#x
//- functiondeclaration
f() {
return this;
f() {
return this;
}

View File

@ -0,0 +1,14 @@
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
async *#m() {}

View File

@ -0,0 +1,14 @@
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
async #m() {}

View File

@ -0,0 +1,14 @@
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
*#m() {}

View File

@ -0,0 +1,14 @@
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class-methods-private]
---*/
//- expression
this.#m
//- functiondeclaration
#m() {}

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Syntax error if you call delete on member expressions . privatename
desc: It's a SyntaxError if delete operator is applied to MemberExpression.PrivateName
template: delete-error
features: [class-fields-private]
---*/